Dotnet octo pack fails

(Stefanm Nilsson) #1


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

Any Ideas?



(Shane Gill) #3

Hi Stefan,

Thanks for getting in touch.

Octo is installed independently of Tentacle, so upgrading Tentacle will not have an effect. Octo can be installed either as a dotnet tool or by unzipping an archive. For the archive version there is no dependency on a specific version of the .NET core runtime but as a tool you must have .NET core SDK 2.1.x installed. (This is called out in our docs here:

Your options would be to install the 2.1 SDK, or use the archive for your chosen OS which is available from our downloads page:

I hope this helps.


(Stefanm Nilsson) #4


I managed to solve this issue by installing .NET Core 2.1.0 and executing the docker step with a reference to this version.


1 Like
(Shane Gill) #5

Hi Stefan,

Just following up on this one. We are currently working to distribute Octo as a self-contained executable, which will remove the requirement to have .NET core installed. You can follow progress here: