The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found

前端 未结 6 761
一整个雨季
一整个雨季 2021-01-07 16:27

I tried to upgrade my web app from .net core 2.0 to .net core 2.1 I did:

1) Install Visual Studio Professional 2017 Preview Version 15.8.0 Preview 1.1
2) Install

6条回答
  •  甜味超标
    2021-01-07 17:12

    By updating all NuGet packages, you seem to have upgraded from the RC version you started out with (which is installed on your system) to the RTM version currently being released (and thus already available on NuGet but not installed on your system).

    The Microsoft.AspNetCore.App NuGet packages are supposed to be referenced without a version so that the installed tooling can pick an appropriate version.

    Update your .csproj file to remove the Version attribute and only reference that package through:

    
      
    
    

提交回复
热议问题