Skip to content

Conversation

@AustinWise
Copy link
Contributor

Fixes "error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 5.0.0-dev)"

This is based on dotnet/sdk#10393 (comment) .

Fixes "error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 5.0.0-dev)"
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@AustinWise
Copy link
Contributor Author

This is a followup to #40504 that fixes the build issue I mentioned in that ticket. When using dotnet publish with an ASP.NET website, the published binaries will be a mix of ASP.NET binaries from the SDK and the dotnet/runtime binaries. An alternate approach to fix the build issue is to remove the SDK's knowledge of ASP.NET and Windows Desktop:

  <ItemGroup>
    <KnownFrameworkReference Remove="Microsoft.AspNetCore.App" />
    <KnownFrameworkReference Remove="Microsoft.WindowsDesktop.App" />
  </ItemGroup>

This allows console apps to build but prevents you from building ASP.NET applications. I'm not sure which approach would be better to document: the one that gives you more flexibility but allows you to mix ASP.NET and dotnet/runtime versions (which could break in strange ways) or the more strict and internally consistent way. This PR chooses the flexible but potentially dangerous approach.

@safern safern merged commit 8e85874 into dotnet:master Aug 10, 2020
@AustinWise AustinWise deleted the patch-1 branch August 10, 2020 23:14
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants