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

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

    I ran into the same problem (error) when trying to deploy my upgraded solution to AWS Lambda using:

    dotnet lambda deploy-serverless

    It turned out that I'd forgotten to update my aws-lambda-tools-defaults.json file.

    "framework"     : "netcoreapp2.1",
    

    Adding for others in the same situation.

提交回复
热议问题