the microsoft.aspnetcore.all package is not supported when targeting .net core 3.0 or higher code example
Example: upgrade .net core 2.2 to 3.1
{
"sdk": {
"version": "3.0.100"
}
}
{
"sdk": {
"version": "3.0.100"
}
}