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.
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)
When trying to update Microsoft.NETCore.App in the NuGet package manager, I am getting the following 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.
Thanks in advance!
Manually removing the nuget packages dependencies from the project and Install-Package for each of them fixed the problem in my case.
I just recently came across this issue and updating the NuGet packages was what worked for me.
This generally happens because the item you are attempting to install requires a more recent version of a sub-dependency than you have already included in your project.
The solution is to update or delete the existing dependency that is in your project prior to installing the package.
Example:
This means you have Newtonsoft.Json 8.0.0 already listed as a dependency in your project, but the package you are trying to install requires at least version 9.0.0 as a dependency.
This is because Visual studio won't automatically upgrade this dependency as you've specified an explicit version for your project. You can either upgrade the dependency in your project to the minimum required version or remove it from your project, and let the package you're installing handle it.
To resolve this, in our example above, this would mean finding 'Newtonsoft.Json 8.0.0' and upgrading it to version '9.0.0' or simply removing it from your project prior to installing your package.
As per answer above the working solution is to remove the following line from your csproj file.
Web App project:
Lib project:
I was trying to upgrade Microsoft.AspNetcore.MVC to Version 2+. The solution for me was to upgrade all of the other dependencies first to 2+, then finally upgrade .MVC.
I was able to fix some error like that adding NoWarn in cproj
You may want to add it only temporarily during multiple package upgrade and remove it later.