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
Issue with Net Core 2.0 projects after installing Net Core 2.1 #9473
Comments
The workaround you mention is correct. This is a dup of #2312. |
@livarcocc I'm not sure this is a dupe of #2312 #2312 seems to have a problem because the plural This issue is caused by the test project being turned into |
@dsplaisted please take a look. |
Removing |
ping @dsplaisted |
After installing .Net Core 2.1, console projects targeting Net Core 2.0 that have
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
, have a higher version of Microsoft.NETCore.App nuget package (2.0.7). If you create a class library project that references the console one, for example a test project, it complains about package downgrading, as Microsoft.NETCore.App nuget package for class library project has version 2.0.0.Adding
<RuntimeFrameworkVersion>2.0.7</RuntimeFrameworkVersion>
and<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
to class library csproj seems a way of overcoming this issue, but I am not sure if it's the most correct one.Steps to reproduce
Install .Net Core 2.1
Clone https://github.com/adrian-lopez-softtek/RuntimeIdentifierIssue and try to build it
Expected behavior
Project builds fine
Actual behavior
Error NU1605 Detected package downgrade: Microsoft.NETCore.App from 2.0.7 to 2.0.0. Reference the package directly from the project to select a different version.
Environment data
dotnet --info
output:Thank you!
The text was updated successfully, but these errors were encountered: