Search code examples
.netnuget.net-corevisual-studio-2017csproj

Detected package downgrade warning (dotnet core, vs 2017)


I have just updated all my nuget packages for my solution (dotnet core 1.1 project).

I am now getting the following warnings and I don't really know what they mean.

NETStandard.Library downgrade warning


Update: I am still getting warnings mentioned above. My web projects warn about the Microsoft.NETCore.App package (see screenshot below) and my lib projects warn about NETStandard.Library (see screenshot above)

Microsoft.NETCore.App downgrade warning

When trying to update Microsoft.NETCore.App in the NuGet package manager, I am getting the following error:

NuGet upgrade error

Hope someone can help me get rid of those warnings and setup everything it is meant to be, so I can update all my packages.


Solution

  • As per answer above the working solution is to remove the following line from your csproj file.

    Web App project:

    <RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>
    

    Lib project:

    <NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>