Godot Version
Godot Engine v4.5.1.stable.mono.official.f62fdbde1
Question
I need to put .csproj and possibly .sln inside of the git submodule directory because I need all of my code inside of a submodule, but I hadn’t found anything about it. The only thing I found is that the GodotSharp project must be in the root next to project.godot, but why? Why can’t I just override? And why does Godot even overwrite my .sln/.csproj in the first place? Either way, thanks in advance.
You can change the .sln location with this setting: dotnet/project/solution_directory ProjectSettings — Godot Engine (stable) documentation in English
But the .csproj has to be next to the project.godot as far as I can tell. It contains all of your Godot-facing code, including any addons you use. There is some kind of special thing to allow Godot to discover scripts in this project, which I assume is why it’s forced to be there. You can have other assemblies for engine-independent code, and those can be placed anywhere you want.
1 Like
I know that, thanks. But .sln isn’t a .csproj and for development the last one is way more important for people who clone my repository, since it contains all of the metadata for devtools, and the root of my project is obviously private. I guess I’ll just stick to symlinks or something like that.