Unable to build C# Project

Godot Version

4.3 Stable Mono (Self-contained)

OS/Browser

ChromeOS v126, Google Chrome

Question

I am getting the error below when I try to build my C# project.
I apologize for the photos. I will try to replace the images with screenshots later

My dotnet version:


(Up to date)

My path variables

I have a .csproj and .sln files, I do not have a external editor

How am I supposed to get rid of this error so I can build the project? Is there a way to help godot find the path to the sdk??

What output does dotnet --list-sdks give?
How did you install the sdk?

This is what happens when I list sdks through dotnet
image
To install the sdk I did:

wget <dotnet 8.0.111 sdk>
sudo mkdir /usr/share/dotnet
cd /usr/share/dotnet
sudo tar xvf <dotnet 8.0.111 sdk>
sudo nano ~/.profile

// put these at the end of the profile document to enclose my path ENVs
export PATH=$PATH:/usr/share/dotnet
export DOTNET_ROOT=/usr/share/dotnet
// restarted linux

dotnet can find the sdk ok then.

The only thing I can suggest to try is to launching Godot from a terminal window.

I have fixed it myself. Turns out I did do everything correctly, it was just Godot’s engine not recognizing it in self contained mode for some reason (not sure if that is the core issue but it is a contributor). Reinstalling Godot without self contained mode (and deleting all of the Godot config and cached files in ./config/Godot) with read and write permissions for the file and folder the executable is in let it work normally as usual.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.