Project is targeting .NET 8, make sure to install the SDK.
When cloning the repo for the first time, make sure to open the project in Godot Editor first, to prevent this error:
Failed loading resource: ... Make sure resources have been imported by opening the project in the editor at least once.
- In the root directory (not
src/
!) create a folder namedProperties
and inside createlaunchSettings.json
. - Copy the following settings:
{
"profiles": {
"Godot": {
"commandName": "Executable",
"executablePath": "D:\\Godot_v4.2.2-stable_mono_win64.exe",
"commandLineArgs": "--path $(ProjectDir) --verbose",
"workingDirectory": ".",
"nativeDebugging": true
}
}
}
- Make sure to change
executablePath
to the path where your Godot binary is located. Also either escape backslashes or use forward slashes. - Open the
.sln
file in the root directory. Launch the profile which you've just configured ("Godot" by default). You should be able to debug (try setting breakpoints) and use IntelliSense with Godot specifics.
Godot support is now automatically integrated in the IDE and by opening the .sln
file, you should get Godot Player and Editor profile automatically.
Follow the same instructions as for VS2022 to set up paths.
Install C# Tools for Godot
extension from the marketplace. Link
Set up godot.csharp.executablePath
setting with the path to Godot engine executable.
In Run & Debug, click create a launch.json file
and select C# Godot
template. launch.json
and tasks.json
will be created, which you must edit to provide Godot Engine executable path.