Detected package downgrade: Microsoft.NETCore.App from 1.1.2 to 1.1.1
@berets76 commented on Wed May 10 2017
Hi, after NuGet packages update I got this warning VS 2017 error list
Detected package downgrade: Microsoft.NETCore.App from 1.1.2 to 1.1.1 MyASPNETCoreProject (>= 1.0.0) -> Microsoft.VisualStudio.Web.CodeGeneration.Design (>= 1.1.1) -> Microsoft.NETCore.App (>= 1.1.2)
MyASPNETCoreProject (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.1.1)
Actual situation

I'm trying to change target platform to netcoreapp 1.1.2 but in the project properties dialog, the combo contains only 1.0 and 1.1
I installed dotnet-dev-win-x64.1.0.4.exe
@sebastianbk commented on Wed May 10 2017
I am experiencing the same issue. I just upgraded my packages via NuGet and received exactly the same warning as @berets76.
@cbeall commented on Wed May 10 2017
I did the same thing in Visual Studio. I think the problem is there needs to be a manual update in the csproj file to update RuntimeFrameworkVersion to 1.1.2.
@berets76 commented on Wed May 10 2017
Update : I installed Visual Studio 2017 update version 15.2 (26430.04) , today's release (just 20 minutes ago) and reopening my solution all works, all projects are updated (to 1.1.2) and warning disappear.
So, install latest update of Visual Studio is the fix.
Here the update
@breyed commented on Thu May 11 2017
Beware, however, that while VS 15.2 fixes one problem regarding the target framework, it causes another. Be prepared to update your csproj file to apply the fix if you host on Azure.
@berets76 commented on Thu May 11 2017
I'm hosting on Azure but using a VM, so I installed DotNetCore.1.0.5_1.1.2-WindowsHosting.exe on it and my VS publish/deploy works. Useful information for Azure App Service deploy.
@livarcocc @weshaggard PTAL
An update for me. The issue was that at no point did the RuntimeFrameworkVersion attribute in the csproj ever update from 1.1.1 to 1.1.2. But when you create a project from scratch, that attribute does not exist and there is no problem. So instead of updating the attribute, it is better to remove it.
That attribute only exists in the csproj file because it was added there by running dotnet migrate. I'm not sure if that continues to be the behavior of migrate, but it was when I updated my project.
So problems exist when the user is not running the latest Visual Studio or when attempting to update a project that was previously processed by dotnet migrate
This looks like something with either dotnet migrate or the implicit package versions. @livarcocc @dsplaisted would be in a better position to make a recommendation.
edit the .csproj file to change the runtime version from 1.1.1 to 1.1.2 may fix the warning.
<RuntimeFrameworkVersion>1.1.2</RuntimeFrameworkVersion>
delete below line to fix this
<RuntimeFrameworkVersion>1.1.1</RuntimeFrameworkVersion>
I did not had that line in the csproj, so the fix was to:
- Right click project name --> Manage NuGet Packages...
- Check the Include prerelease option
- Go to Updates tab and update the necessary packages.
Update them one by one.
I didn't have RuntimeFrameworkVersion in the csproj files either but every project in my solution is showing this warning.
In the NuGet package manager it's already showing 1.1.2 as installed.
Any ideas?
Sometimes it helps to "clear all Nuget Cache(s)". So Tools->Options->Nuget Package Manager->General and then click on the "clear all Nuget Cache(s)" button.
Another dependency (for example other nuget package) might have installed a higher version of a dll that the nuget package you want to install targets. Th e nuget package fails to install, because the dependency fails to install. Clearing the cache might solve this problem.