This version of Microsoft.AspNetCore.All is only compatible with the netcoreapp2.1 target framework

后端 未结 10 1194
无人共我
无人共我 2021-02-04 23:24

When I try to publish my application to the web server after upgrading to .NET Core 2.1 from 2.0, I get this message: \"This version of Microsoft.AspNetCore.All is only compatib

10条回答
  •  再見小時候
    2021-02-05 00:23

    1. You possibly need to do clean on the project first.
    2. Right click on the Project File in Visual Studio.
    3. Click the properties select the Application -> Target Framework drop down and choose the version of .Net Core Framework you are wanting to use.
    4. Rebuild your solution.

提交回复
热议问题