/msbuild:msbuildfrom msbuild
Diagnoses MSBuild failures and slow builds and reviews .NET build XML. Use for a failing dotnet build, restore, pack or publish, .csproj/.props/.targets conditions and custom targets, binlog capture and replay, "it rebuilds when nothing changed", slow evaluation or builds, bin/obj clashes, or Directory.Build.* layering.
Ships in msbuild. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pick one task (troubleshoot, performance, or authoring review), then read only the references that task needs. Fix correctness before measuring speed, and keep an authoring cleanup separate from a performance experiment.
Not for: C# compile errors in source (csharp), package versions, Central Package Management, sources and audit (nuget), test failures after a successful build (dotnet-testing), legacy-to-SDK-style or packages.config conversion and TFM upgrades (dotnet-upgrade-guide), runtime profiling (dotnet-diagnostics).
global.json, Directory.Build.*, Directory.Build.rsp, and the repo's documented build command (script, CI file). Keep the original command, working directory, configuration, TFM, RID, global properties and target..binlog may be the only artifact. Analyze it before asking for a new build; paths inside it don't prove a checkout exists locally. Never read a .binlog as text: replay it with dotnet msbuild x.binlog (see binlog-failure-analysis).dotnet msbuild <proj> -getProperty:X -getItem:Y, or -pp:merged.xml for the fully imported project.Goal: find the independent root causes and make the smallest repair.
| Situation | Read |
|---|---|
| A binlog of the failure exists | binlog-failure-analysis: separate root causes from cascades, tie each error to its project, target and task |
| No matching log | binlog-generation, then failure analysis |
| "file already exists" / "used by another process", intermittent failures, overwritten outputs | bin-obj-clash |
| Wrong conditions, items, properties or output paths | msbuild-antipatterns, items-and-properties |
| Imports or hooks missing, overwritten or out of order | extension-points |
| Generated file not compiled, copied or cleaned | targets |
| Stale outputs or skipped work | incremental-build |
NETSDK1004/NETSDK1047 after adding --no-restore | redundant-restores |
After a repair, rerun the original failing command and check affected dependents. If you only had a log, give the evidence-backed fix and say it was not applied or rebuilt.
Goal: measure the reported scenario, find its bottleneck, change one cause, compare equivalent builds.
ResolveProjectReferences time is mostly waiting on other projects, so follow it down to real task self-time (Csc, ResolveAssemblyReference, Copy).| Situation | Read |
|---|---|
No trustworthy before/after numbers; parallelism, -m, /graph, critical-path questions | build-perf-baseline |
| Expensive work not yet identified; compiler, analyzer, reference or restore time | build-perf-diagnostics |
| Time before targets run: globs, imports, property evaluation | eval-performance |
| Copies and output I/O | copy-to-output-directory |
| An unchanged second build recompiles or regenerates | incremental-build |
| Several CI steps each restore | redundant-restores |
Goal: cleaner project files and extension contracts with unchanged behavior. Not a framework, package or project-system migration.
| Request | Read |
|---|---|
| Project files, shared properties, items, custom targets | msbuild-antipatterns, items-and-properties, targets |
| Settings repeated across projects, Directory.Build.* layout | directory-build |
Hooks, imports, NuGet build/ assets | extension-points |
| Generation or copying restructured as part of cleanup | incremental-build, copy-to-output-directory |
Record the existing contract before editing. A pattern match is not proof of a defect: check each catalog entry's exceptions and leave correct patterns alone. Validate the original configurations, consumers, and incremental, pack and publish behavior.
dotnet build-server shutdown), disable diagnostics, change SDKs or serialize builds as generic fixes. Scope any destructive step to approved, owned outputs.-bl:build-02.binlog); bare -bl overwrites msbuild.binlog. Keep binlogs local unless the user authorizes sharing: they can contain environment variables, property values and the imported project files.Report the task, the cause, bottleneck or authoring decision, the evidence, and the minimal change made or proposed (or that none is needed). Give the exact verification commands and whether each passed, failed or was not run; performance claims need comparable measurements and their spread.
references/antipatterns/additional-antipatterns.md (opens in a new tab)references/antipatterns/incremental-build-inputs-outputs.md (opens in a new tab)references/antipatterns/private-assets.md (opens in a new tab)references/bin-obj-clash.md (opens in a new tab)references/binlog-failure-analysis.md (opens in a new tab)references/binlog-generation.md (opens in a new tab)references/build-perf-baseline.md (opens in a new tab)references/build-perf-diagnostics.md (opens in a new tab)references/copy-to-output-directory.md (opens in a new tab)references/directory-build.md (opens in a new tab)references/eval-performance.md (opens in a new tab)references/extension-points.md (opens in a new tab)references/incremental-build.md (opens in a new tab)references/items-and-properties.md (opens in a new tab)references/msbuild-antipatterns.md (opens in a new tab)references/redundant-restores.md (opens in a new tab)references/targets.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin msbuild