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
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.