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

后端 未结 10 1193
无人共我
无人共我 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:18

    I had the same problem, but then I had not updated the publish profile file(.pubxml) for the right targetenvironment

    < TargetFramework>netcoreapp2.1< /TargetFramework>
    

    And regarding to earlier answer the row

    < DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.1" />
    

    Show be removed in 2.1 version beacuse of obsolete and are included nowaday

提交回复
热议问题