Alternatively if you are targeting .NET core you can simply run dotnet publish -r linux-x64 and it will generate a self contained Linux executable.
For extra Linux points you can also add the following nuget package:
It will automatically generate a .flatpak Linux package for your game, just make sure you’ve installed the required dependencies. Instructions are available on the Github page