How to install .NET 7 on Bazzite?

I would love to play the latest version of Vintage Story on Bazzite but the flatpak is not quite up to date. You can install the game manually without flatpak, but in order to run it, the game needs .NET 7 runtime installed. I've tried googling the issue and even installing it in several different ways but I just can't do it. Trying with the package manager, the basic "dnf install dotnet-sdk-7.0" only yields the message "package not found". It seems that .NET 7.0 is not supported by Fedora 40/41 anymore, so I would need to intall it manually, but I don't know Linux enough to install it manually. Anyone any wiser?
25 Replies
HikariKnight
HikariKnight3d ago
flatpaks are separate from the host, if the flatpak needs dotnet, it has to be installed as a flatpak runtime or the flatpak has to provide it itself flatpak search dotnet will yield you all the flatpak runtimes with dotnet, you want to use the Application ID as the package to install through flatpak install
Moshugaani
MoshugaaniOP3d ago
Sorry, I wasn't clear in the original text. The game has a flatpak version and it works just fine, but it's not up to date with the latest version of the game. You can install the latest version manually, but it also requires dotnet 7. But Bazzite doesn't come with it installed and it seems that it's not officially supported by Fedora 40/41 anymore. Only dotnet versions 8 and 9 are officially supported. So, I would need to install the version 7 manually, and for this I need assistance.
HikariKnight
HikariKnight3d ago
in that case install it in a distrobox as per our documentation the distrobox can be whatever distro you prefer so if you know (or they officially support) ubuntu and its packages you make an ubuntu container and install it there.
Moshugaani
MoshugaaniOP3d ago
I see. Well, I'll try to see how to use the distrobox. I haven't touched it before. Thanks!
HikariKnight
HikariKnight3d ago
np! there is a gui for it named boxbussy
Moshugaani
MoshugaaniOP3d ago
So I tried the Boxbuddy, and seemingly was able to install dotnet 7.0. But it still doesnt' appear to be installed? The above window is the distrobox running Fedora 39 and below is the regular console showing which dotnet installations it's seeing.
No description
Moshugaani
MoshugaaniOP3d ago
Do I have to do some extra steps for it to actually be applied into my system?
asen23
asen233d ago
you need to run the app inside distrobox too
Moshugaani
MoshugaaniOP3d ago
Uhh I see. So the installed dotnet 7 really is contained within the Fedora 39 container that I created with Boxbuddy?
asen23
asen233d ago
yes
Moshugaani
MoshugaaniOP3d ago
Can I "uncontain" it somehow?
asen23
asen233d ago
why? you can start app inside distrobox as if it installed in the host but pretty much thats it deps need to be contained
Moshugaani
MoshugaaniOP3d ago
It just seems like a hassle to run the game within the container too every time I want to play it. :D But I'll try. Thank you!
asen23
asen233d ago
just create a shortcut for the game
asen23
asen233d ago
Distrobox
Use any linux distribution inside your terminal.
asen23
asen233d ago
boxbuddy have option to do it in gui too i think
Moshugaani
MoshugaaniOP3d ago
option for the shortcut? I can't see it in Boxbuddy.
asen23
asen233d ago
its inside view application but it only work for installed app
Moshugaani
MoshugaaniOP3d ago
The hardest thing about learning how to use a new OS is that I don't even know what to google a lot of times! :D None of my searches seem to bear fruit. All I get are guides on how to install and run apps within the container, but nothing on how to run a native program from the container.
asen23
asen233d ago
what did the apps gave you to run? installer? tar file?
Moshugaani
MoshugaaniOP3d ago
There's a run.sh file and an executable. Well, I managed to run the run.sh within the container, but it crashed. Now I'm not sure whether the issue is with the container or with the game. It gives me this error message on crash: Game Version: v1.20.0-rc.5 12/17/2024 3:24:03PM: Critical error occurred Loaded Mods: OpenTK.Windowing.GraphicsLibraryFramework.GLFWException: GLX: Failed to load GLX at OpenTK.Windowing.Desktop.GLFWProvider.DefaultErrorCallback(ErrorCode errorCode, String description) Even though it says "loaded mods", there's actually no mods installed, just vanilla. So does this mean that the container doesn't have GLX installed, or my native system doesn't have it? Anyway, thanks for the help! I'll continue this battle on another day. :D
asen23
asen233d ago
Container You need to install the deps
Moshugaani
MoshugaaniOPthis hour
This is exactly the reason why I want .NET 7 on the main distro side, so that I only need to install that instead of installing a bunch of stuff in the container. :p I'll probably try installing manually again. I'll report how it goes. :D
asen23
asen23this hour
well the upside is you can have game require net 8, 7, 6, whatever and have them all without conflicting with each other
HikariKnight
HikariKnight18h ago
this 1 thing alone
Want results from more Discord servers?
Add your server