Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #270 Fix error NU1605: Detected package downgrade on dotnet publish #271

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

TechPreacher
Copy link
Contributor

Fixes Bug #270

Problem fixed according to solution described in https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1605#issue-1

Problem
Certain combinations of packages which shipped with .NET Core 1.0 and 1.1 are not compatible with each other when they are referenced together in a .NET Core 3.0 or higher project, and a RuntimeIdentifier is specified. The problematic packages generally start with System. or Microsoft., and have version numbers between 4.0.0 and 4.3.1. In this case, the downgrade message will have a package starting with runtime. in the dependency chain.

Solution
To work around this issue, add the following PackageReference:

<PackageReference Include="Microsoft.NETCore.Targets" Version="3.0.0" PrivateAssets="all" />

@TechPreacher
Copy link
Contributor Author

Should we close this PR? @ronniesa, @fbeltrao?

@Mandur Mandur merged commit df05171 into dev Jan 7, 2021
@Mandur Mandur deleted the saschac-bug-270-fix-dotnet-publish branch May 16, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants