build_csharp
Compile-check a C#/.NET Godot project after editing .cs files, returning structured diagnostics with file, line, column, and CS codes. Runs an isolated build so the editor's loaded assembly stays untouched.
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, checked first (Godot 4.8 needs SDK 10): a missing or too-old one comes back as a plain error saying what to install, not as build noise. First build restores packages (slower); incremental ~1-3s. Use after editing .cs — the GDScript compile-gate (write_script) does NOT cover C#.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_csharp"
}
}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 |