Update using-dotnet-cli.md (#40580)
authorAustin Wise <AustinWise@gmail.com>
Mon, 10 Aug 2020 22:55:00 +0000 (15:55 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Aug 2020 22:55:00 +0000 (17:55 -0500)
Fixes "error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 5.0.0-dev)"

docs/workflow/using-dotnet-cli.md

index 68cadd5..8090f0e 100644 (file)
@@ -58,13 +58,16 @@ Please run `dotnet new console` in the app folder and update the created `.cspro
     <OutputType>Exe</OutputType>
     <TargetFramework>net5.0</TargetFramework>
     <RuntimeIdentifier>win-x64</RuntimeIdentifier>
-    <RuntimeFrameworkVersion>5.0.0-dev</RuntimeFrameworkVersion>
   </PropertyGroup>
 
+  <ItemGroup>
+    <FrameworkReference Update="Microsoft.NETCore.App" RuntimeFrameworkVersion="5.0.0-dev" />
+  </ItemGroup>
+
 </Project>
 ```
 
-**You have to set the correct values for `RuntimeIdentifier` (RI), `RuntimeFrameworkVersion` and versions of both packages.**
+**You have to set the correct values for `RuntimeIdentifier` (RI) and `RuntimeFrameworkVersion`.**
 
 You can generally figure that out by looking at the packages you found in your output.
 In our example you will see there is a package with the name `Microsoft.NETCore.App.Runtime.win-x64.5.0.0-dev.nupkg`