.NET location: Not found

I have followed the Ubuntu guide on the MonoGame website. Project builds correctly but the build will not start. It says:
Architecture: x64
App host version: 9.0.4
.NET location: Not found
Process finished with exit code 131.

My dotnet version is 9.0.4. I have installed mgcb dotnet tool, it supports 9.0 framework. Not sure what the problem is.

I am using PopOs.

Use the command “dotnet run” in the project directory to run the output.

By default the Linux output is a dll file, not exe.
Also this file will not get UNIX file execute permissions.

Bottom line:

If in the command line, in the proper directory: donet build succeeds dotnet run will run the game.

1 Like

how did you install dotnet? was it via the OS package manager or via the dotnet install script?
what happens when you do

which dotnet?

Also if that works what is the output of

dotnet –info

Problem was in Rider which was not using OS variables so it had no idea. Forgot what exactly. But yeah, it worked through terminal

1 Like

Are you all working now?

Check with Rider support, there is a guy on the MonoGame Discord who helps out with Rider if you ask in the #Help channel.