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 tried most of the suggestions I could find but what ended up fixing the issue was deleting the Microsoft.AspNetCore.All package from here:
%userprofile%.nuget\packages\microsoft.aspnetcore.all\2.1.5\build\netcoreapp2.1\
The next build restored the correct version.