build_csharp
Compile C#/.NET Godot projects with dotnet build, returning structured file:line:col and CS-code diagnostics. Isolated build safe while editor is open.
Instructions
Compile-check a C#/.NET Godot project with dotnet build, returning structured diagnostics (errors/warnings with file:line:col + CS-code). Isolated build (scratch output) â never touches the editor's loaded assembly, so it's safe while the editor is open. Auto-detects the .csproj if omitted. Needs the .NET SDK (already installed for any C# Godot project). First build restores packages (slower); incremental ~1-3s. Use after editing .cs â the GDScript compile-gate (write_script) does NOT cover C#.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csproj | No | res:// or absolute path to the .csproj; auto-detected from the project if omitted | |
| configuration | No | Debug (default) or Release |