[solution]
Builds a solution or project with dotnet build (or Visual Studio MSBuild with runner 'msbuild'), captures a sensitive build.binlog artifact, and stores normalized buildError/buildWarning evidence in a GliderTrace build session.
Build failures need structured error and warning evidence with source positions, not a scrollback of MSBuild output.
The model reads normalized build diagnostics with file/line locations and can correlate them to symbols instead of re-parsing console logs.
Try it locally in the GliderTrace playground
| Name | Type | Required | Description |
|---|---|---|---|
| targetPath | string | No | Optional solution, project, or directory path under the workspace root. Defaults to the workspace root. |
| configuration | string | No | Build configuration. Defaults to Release. |
| framework | string | No | Target framework moniker passed as --framework. Requires runner 'dotnet'; use properties with runner 'msbuild'. |
| noRestore | boolean | No | Skip restore (--no-restore for dotnet build; omits -restore for msbuild). Defaults to false. |
| runner | string | No | Build runner: 'auto' (default, dotnet build) or 'msbuild' (Visual Studio MSBuild.exe located through vswhere; requires the server started with --allow-executable msbuild). |
| properties | json | No | MSBuild properties passed as -p:Key=Value, for example EnableSourceControlManagerQueries=false for git worktrees. |
| arguments | json | No | Additional MSBuild arguments appended verbatim, for example /nr:False or /m. Binary-logger arguments are managed by the tool and rejected. |
| environment | json | No | Optional environment variables to set for the build process. |
| timeoutMs | number | No | Optional build timeout in milliseconds. When exceeded the session completes with status timeout. |
| summaryLimit | number | No | Maximum diagnostics returned in topFindings, errors first. Clamped to 1..100. Defaults to 20. |
Build the workspace and capture binlog evidence
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "trace_build",
"arguments": {}
}
}Build a legacy solution with Visual Studio MSBuild
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "trace_build",
"arguments": {
"runner": "msbuild",
"properties": {
"EnableSourceControlManagerQueries": "false"
}
}
}
}Returns a build session id, status, exit code, errorCount/warningCount/projectCount/buildSucceeded summary, errors-first topFindings, and a sensitive binlog artifact reference.