dbup-cli icon indicating copy to clipboard operation
dbup-cli copied to clipboard

Support net8

Open drewburlingame opened this issue 2 years ago • 3 comments

We're unable to run this in an env with net8.0. Would be helpful to have it upgraded so we don't have to install two versions of the framework.

I've opened https://github.com/drwatson1/dbup-cli/pull/35 to facilitate this.

drewburlingame avatar Jan 19 '24 13:01 drewburlingame

until net8 is supported, this is what I'm running before installing dbup in my builds (on linux containers): wget https://dot.net/v1/dotnet-install.sh && bash dotnet-install.sh --version 7.0.405 --install-dir /usr/share/dotnet

drewburlingame avatar Jan 22 '24 08:01 drewburlingame

While installing .NET 7 is an option, there can be another workaround: setting DOTNET_ROLL_FORWARD=Major env variable.

Without:

# dbup
You must install or update .NET to run this application.

App: /root/.dotnet/tools/dbup
Architecture: arm64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (arm64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  8.0.2 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

With it:

# DOTNET_ROLL_FORWARD=Major dbup --version
dbup-cli 1.8.1

AlexeyRaga avatar Feb 14 '24 09:02 AlexeyRaga