Kill orphaned VBCSCompiler and MSBuild processes to reclaim memory. Use when builds are slow, memory is high, or after a heavy build wave.
Kill orphaned .NET compiler processes using the cleanup MCP tool and report what was reclaimed.
Call the cleanup MCP tool with no additional parameters:
cleanup{}Wait for the result.
Present the output clearly:
Suggest running cleanup proactively in these situations:
dotnet build invocation can leave a VBCSCompiler daemon running if not already running.Running cleanup is always safe — if no orphans exist, it exits cleanly with nothing to do.