Build (structured)
dotnet_buildRun .NET builds and return compact structured diagnostics with file, line, column, message, and error code, omitting warnings unless requested.
Instructions
Run dotnet build and return structured diagnostics with file, line, column, message, and error code. Much more compact than raw MSBuild output. Warnings are omitted by default; pass includeWarnings:true (or detailLevel:'full') to include them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Required. Project root directory | |
| project | No | Path to .csproj or .sln file (default: auto-detected in cwd) | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) | |
| configuration | No | Build configuration (e.g. Debug, Release) | |
| includeWarnings | No | Include warnings in the response (default: errors only, even on a successful build) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| summary | Yes | ||
| exitCode | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes | ||
| diagnostics | Yes | ||
| warningCount | Yes |