After upgrading .NET Core from 2.1 to 3.1, we get the following error during deployment:
+ PATH=/root/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games dotnet octo pack --id=Company.Api --version=0.6.0.68 --basePath=./Company.Api/dist
It was not possible to find any compatible framework version
The framework ‘Microsoft.NETCore.App’, version ‘2.1.0’ was not found.
- The following frameworks were found:*
3.1.1 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]*
You can resolve the problem by installing the specified framework and/or SDK.
We tried upgrading from “Octopus.Tentacle.4.0.1” to “Octopus.2019.13.0-x64”, but the error remains.