Dotnet octo pack fails

(Stefanm Nilsson) #1

Hi,

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.

Any Ideas?

Regards

Stefan

(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: https://octopus.com/docs/octopus-rest-api/octo.exe-command-line/install-global-tool).

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: https://octopus.com/downloads

I hope this helps.

Cheers,
Shane

(Stefanm Nilsson) #4

Thanks,

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

Stefan

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: https://github.com/OctopusDeploy/Issues/issues/6128

Cheers,
Shane