Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support net8 #36

Open
drewburlingame opened this issue Jan 19, 2024 · 3 comments
Open

Support net8 #36

drewburlingame opened this issue Jan 19, 2024 · 3 comments

Comments

@drewburlingame
Copy link

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 #35 to facilitate this.

@drewburlingame
Copy link
Author

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

@AlexeyRaga
Copy link

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

@ghost
Copy link

ghost commented Oct 5, 2024

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

Thank you for this! To follow the boy scout rule, here's a way to do this without polluting the environment (this is for Powershell):

pwsh -Command { $env:DOTNET_ROLL_FORWARD="Major"; <your command here> }

This will create a "subshell" and will scope the environment variable changes for that subshell, run the command, and then exit the subshell when it's done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants