Godot Version
Godot 4.4 - custom build
Question
I have a project using Godot 4.4 that I would like to be able to export from the command line. I’ve configured the necessary export presets. I’ve successfully exported the project, including the C# aspects of it from the editor, so I know that the project is building and exporting properly in some cases. However, when I run the command to export the project from the command line, I end up with a build that does not include the C# data directory.
Additionally, when building the project, I get an error in the build output saying “.NET Sdk not found. The required version is ‘9.0.5’”. I’ve installed the latest version of the .NET Sdk (which is actually 9.0.3 as far as I can tell), so I don’t think the problem is that I’m missing the right version of the Sdk.
For context, here’s the command I’m trying to use:
godot.mono --export-release "Windows Release" "path\to\build\MyGame.exe" --headless --quit
I have also built the .NET enabled export templates, so I doubt that is the problem as well. It really seems like the problem is simply that godot can’t find the .NET Sdk when running in the command line, and I’m not sure how to tell it where to find it.
Any help would be greatly appreciated!