Generated banner for Msbuild
Generated logo for Msbuild

Msbuild

.NET (Microsoft)OfficialPublished by .NET (Microsoft)

  • Skill
  • Tool integration
  • Software development
  • MIT
  • No issues found

From the author

Use before MSBuild custom-target or incremental-generation repairs, XML/import/hook review, .binlog capture/replay, or assessing supported/unsupported build-speedup claims and controlled timings, even without a checkout. For MSBuild authoring itself, activate before reviewing/editing .proj/.props/.targets/.csproj/.fsproj/.vbproj or Directory.Build files, including no-change import reviews. Framework/API/.NET/ASP.NET upgrade plans and working non-SDK-to-SDK/packages.config conversions are migrations, even if they mention .csproj/NuGet: DO NOT activate. A failing assertion after a successful build is code/test debugging: DO NOT activate. Check Import/Exists, required and NuGet build/buildTransitive/nuspec imports, conditions, Inputs/Outputs, stale outputs and incorrect skips. Build checks use copies; source inputs stay read-only. Diagnose failed dotnet build/restore/pack/publish or slow evaluation/compilation/copying. Exclude SDK installation alone, C# refactoring, runtime CPU profiling and non-MSBuild builds.
— the description by .NET (Microsoft)

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured methodology for investigating MSBuild failures, performance bottlenecks, and authoring issues. It emphasizes evidence-based analysis using binary logs and incremental build checks, ensuring that repairs are targeted and minimal. The skill guides users through diagnosing failed builds, verifying incremental build contracts, and optimizing build performance without resorting to broad cleanups or unverified assumptions.

What it does

  • Analyzes binary logs to identify root causes of build failures.
  • Validates incremental build inputs, outputs, and skip conditions.
  • Diagnoses performance bottlenecks in evaluation, compilation, and copying.
  • Reviews MSBuild project files for anti-patterns and incorrect import contracts.
  • Provides a framework for controlled performance experiments.
  • Ensures build authoring changes preserve existing contracts and dependencies.

When to use it

  • When a build fails and you need to identify the specific project instance or task responsible.
  • When outputs are stale or build targets are incorrectly skipped.
  • When you need to investigate slow build evaluation or compilation times.
  • When reviewing or editing .proj, .props, .targets, or Directory.Build files.
  • When you need to verify that custom build targets correctly handle incremental builds.

Advantages

  • Promotes minimal, targeted repairs rather than broad, risky cleanups.
  • Uses evidence-based analysis via binary logs instead of guesswork.
  • Provides clear, repeatable patterns for performance benchmarking.
  • Ensures build integrity by respecting existing contracts and evaluation order.
  • Reduces build noise by correctly identifying cascading failures.

Usage examples

“My build is failing with an obscure error. How do I investigate?”
The agent will guide you to capture a binary log, replay it to isolate the specific failing task, and identify the root cause within the project structure.
“Why is my custom target running even when inputs haven't changed?”
The agent will help you audit the target's Inputs and Outputs, check for missing file registrations, and ensure input-set membership is correctly tracked.
“How can I prove that changing a specific MSBuild property improves build time?”
The agent will define a controlled two-arm experiment, comparing the baseline against the modified setting while keeping all other variables constant.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/dotnet/msbuild/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip msbuild.zip -d .agents/skills

Documentation by .NET (Microsoft)

MSBuild troubleshooting

For advice or static review, answer from the supplied XML, package facts, or measurements when they settle the question: no reference reads, checkout discovery, commands, or invented verification. For requested work, start at the supplied project or artifact; discover only what the next decision needs. Read a reference only for a specific unresolved question. References are not invocable skills.

Start with the task and evidence

Before editing, follow repository instructions and inspect the project/imports. Preserve the original command, working directory, SDK, configuration, target framework, runtime identifier, global properties, and target. Ask only for consequential information that cannot be discovered.

An existing .binlog can be the only available artifact. Analyze it before requesting a new build; paths inside it do not prove a checkout exists locally.

For a mixed request, fix correctness before measuring successful builds, and keep authoring review separate from a performance experiment. A failing test assertion after a successful build is not an MSBuild failure.

Capture only: choose an unused artifact path under the supplied workspace, unless the user specified another artifact directory. Do not put the only deliverable in a shared/global temporary directory where workspace artifact collection will miss it, or stage/commit the log. Append the binary logger to the exact supplied command, run it once, and save its original exit code before checking the new log is nonempty. Report the artifact path and original exit code, then stop: no replay, diagnosis, or repair. Read capture details only for an unresolved wrapper, logger-option, toolset, or privacy question.

1. Troubleshoot build issues

Goal: identify the independent root causes and make the smallest repair, not a broad cleanup.

SituationReference if neededAction
A build failed and a binary log existsbinlog-failure-analysisReplay the log with MSBuild; connect errors to the responsible project instance, target, and task. Separate root causes from cascading failures.
The failure needs evidence and no matching log existsbinlog-generation, then failure analysisCapture the original invocation once and verify the artifact. Analyze it only when requested.
A project/build file has incorrect conditions, items, properties, or output pathsmsbuild-antipatternsSelect the relevant catalog entries and check their exceptions before changing anything.
Imports or build hooks are missing, overwritten, or run in the wrong orderextension-pointsInspect the import contract, discovery order, and packed NuGet layout rather than hiding a required failure.
Outputs are stale or required work is skippedincremental-buildTrack input-set membership as well as file timestamps; apply the repair contract below.

For build-wiring-only work, generator and source inputs are read-only throughout, not restored after tests; edit the original only as the requested repair requires. Allocate disposable scratch as a uniquely named directory outside the project tree, normally the OS temporary directory from mktemp -d; a copy inside the project can be matched by SDK default globs and break the later confirming build. Print the path once and write every copy, log, and hash under it: no fixed leaf names, pointer files, pre-deleting, or globbing to recover it. After the checks, remove exactly that path (never a pattern) and keep it in the report. Copy the project/input tree and required imports; run every scenario that adds, deletes, empties, or retimes inputs, or deletes obj/outputs, with the copy as working directory. A backup is not a verification copy, nor is an original project already under a temporary path. Compare original hashes before/after; equal final hashes do not excuse intermediate mutation. A confirming build of the repaired original must not delete outputs. If the copy cannot reproduce the environment, report blocked checks.

For input-set changes, prefer a persisted membership list written with WriteLinesToFile and WriteOnlyWhenDifferent, plus actual files in Inputs. A path list is not a content hash. Verify first/unchanged builds, deletion, older addition, empty inputs, and missing-output recovery on the copy. End the repair report, however brief, with three labeled explanations, not only a checklist:

  • Cause: state both blind spots: a deleted input vanishes from the timestamp comparison; an added input older than the output never looks newer; either skips required regeneration.

  • Mechanism: identify the membership artifact and how its changes invalidate the output. Unchanged membership preserves skips; actual file timestamps still catch ordinary edits.

  • Checks: list passed, failed, and not-run separately with the command or path used. "None failed" requires every command to exit 0; an errored script, even if fixed and rerun, is listed failed with its cause. If the main scenario passed but a later assertion failed, report both; never summarize as verified.

After a repair, rerun the original failing scenario and check affected dependents. If only a log is available, provide an evidence-backed proposed fix and say it was not applied or rebuilt. Do not turn a targeted failure investigation into solution-wide authoring cleanup.

2. Diagnose and improve build performance

Goal: measure the original workload, not an easier replacement.

For advice, give the verdict, decisive facts, and a concrete next step with equivalent successful builds and required outputs. Do not re-prove a supplied timeline or read references to restate it. Do not infer warm/no-op state or assign any part of a confounded timing gap to restore, cache, or setting effects without isolating that cause.

Supplied evidenceDecisionSmallest useful follow-up
Parallel target totals include overlapping dependency waitsKeep required references and parallelism. Cumulative waits can exceed both wall time and the duration of one dependency task; they do not prove CPU utilization or healthy scheduling.Follow the supplied timeline to the dependency task holding up consumers. For Csc, inspect compiler inputs and invocation, analyzer/source-generator timing, and whether compilation was expected for this workload. Measure CPU/node utilization or I/O contention if unknown; do not infer them from wait totals. Validate any change with equivalent successful builds and required outputs.
Commands, restore policy, or starting input/output states differReject attribution to the setting, not the possibility of a real gain.Give one matched old-setting/new-setting experiment below, not a menu of different workloads or an invented setting name.
Repeated successful runs have matched conditions and outputsAccept the observed improvement for that workload; use the same summary statistic for both arms: 100 * (old - new) / old.Report sample count and observed elapsed-time ranges, not an invented percentage uncertainty interval. Then state residual limits: small sample, one workload/machine/SDK, what restored starting state does and does not control, and no independent rerun. Do not require a checkout to acknowledge the supplied result.

When a minimal attribution experiment is needed, return one two-arm table, not alternatives:

  1. Bind the treatment to the user's identified setting and old/new values. If unidentified, retain literal <setting>, <old>, <new> placeholders. Differing commands are confounds, not setting names. Never substitute restore policy, Build/Rebuild, or cache state for an unidentified setting.

  2. Expand the full original baseline command in both arms. Only an explicitly identified command-line treatment may change its own argument; otherwise vary its configured value.

ArmTreatment, supplied or placeholderControlled invocation and workload
A<setting> = <old>Full original baseline command; input and starting outputs exactly as supplied
B<setting> = <new>Same full command, input, and starting outputs; only the named treatment differs
  1. Match non-treatment SDK, machine, configuration, instrumentation, target, restore policy, and input/output state exactly as supplied. Add no source edit the original workload lacked (keep one it had in both arms). Matching both arms is not enough if both replace the original workload. When they are controls, retain supplied Rebuild and timed restore; do not prime, warm, or move work outside the timer unless the original workload already did.

  2. Alternate matched pairs; compare wall-time medians and observed ranges; check required outputs and diagnostics. Scope the result to that workload. The table is the only experiment; the last sentence states a validity check or residual limit, not an offer or variant.

For optimization work, establish the relevant successful baseline before changing one supported cause:

Unresolved measurementReference if needed
Cold-output, changed-input, no-change, restore/cache state, or Build versus Rebuildbuild-perf-baseline
Unknown task cost, compiler/analyzer/reference/restore work, or overlapping waitsbuild-perf-diagnostics
Pre-target globs, imports, property evaluation, or excess project instanceseval-performance
Copies/output I/O, unchanged copies, or a modified destinationcopy-to-output-directory
Unexpected regeneration/skips, added/removed inputs, or missing outputsincremental-build

Stop when the suspected bottleneck is not supported by evidence, results fall within noise, or correctness regresses. Report missing measurements rather than manufacturing a complete baseline.

3. Review build authoring

Goal: preserve build contracts, not implicitly migrate frameworks, packages, languages, or project systems.

Check evaluation phases, not just import order. Outside targets, properties/imports are evaluated before items. A framework set in the project body can be unavailable to an early property condition in Directory.Build.props but available to an item condition in that same file. Move only the premature property assignment after its dependency; do not relocate an intentionally project-owned framework or a working item declaration. Preserve F# compile order and inspect SDK defaults before adding switches to suppress supposedly duplicated items.

Requested changeReference if neededPreserve
Review/clean up project files, shared properties, item declarations, or custom targetsmsbuild-antipatternsIntentional overrides, F# source order, required imports, package assets, and actual input/output contracts.
Review/improve hooks, imports, shared-file discovery, or NuGet build extensionsextension-pointsPrior hooks, evaluation order, direct/transitive consumer behavior, and the packed layout.
Restructure generation or copying as part of cleanupincremental-build and copy-to-output-directory, as applicableFirst-build and no-change behavior, invalidation, generated-item registration, and output completeness.

Record the existing contract; a matching catalog pattern alone is not a defect. Leave correct code alone. Validate authorized changes against original configurations, consumers, and affected build behavior.

Keep optional and required imports distinct, including inside aggregation files:

<Import Project="optional.targets" Condition="Exists('optional.targets')" />
<Import Project="required.targets" />

The required import must load or fail, not silently skip. Explain why a condition on an entire mixed path list can suppress a valid required import; semicolon-separated imports themselves are supported. Check optional present/absent crossed with required present/absent, preserving order when both exist. When checks run, report the observed order and failure cases, not only "verification passed." Do not replace configurable paths with hard-coded values unnecessarily.

For a packaged forwarder, keep these bindings separate:

BindingMeaning
NuspecFileSelects the XML manifest, possibly outside the project; not a payload mapping.
NuspecBasePathBase directory for the manifest's file src lookups on disk; it neither locates nor selects the manifest.
Mapping src / targetReads the source file and emits its mapped archive path; does not implicitly ship the source path too.
Consumer importResolves from the importing file inside the package, not source, feed, or the consumer's framework.

Do not substitute the manifest path for a mapping's src. For a no-change verdict, explain how NuspecFile selection, NuspecBasePath src lookup, mapping, packed target, and relative import connect, and why guarding a required import would hide a broken package. If supplied package facts settle this, stop: no Exists guard, reorganization, or confirmatory rebuild/repack. Inspect artifacts only when verification is requested or contents remain unknown.

Shared evidence and safety

  • For analysis, use MSBuild replay, never binary-file text parsing. Replay success and replay duration are not the recorded build's result or duration.

  • Resolve these files relative to this skill. Do not load the original plugin's skills or search other installations/checkouts. After a failed reference read, allow one listing of references to distinguish a missing bundled file from a present-but-unreadable tool integration failure. Report the error and reduced coverage; do not retry through shell commands or other readers, and do not pretend unread guidance was followed. Never work around a policy denial.

  • Do not clean outputs/caches, stop shared build servers, disable diagnostics, change SDKs, or serialize builds as generic fixes. Scope any necessary destructive experiment to approved, owned outputs. Keep binary and replayed logs local unless sharing is authorized.

  • Distinguish recorded facts from hypotheses. Missing source, log detail, tools, or platform support must be reported explicitly, not replaced with assumed values or invented verification.

Completion

Advice: verdict, decisive evidence, necessary next measurement; no manufactured verification. Repository work: cause/decision, minimal change (or no change), and exact successful, failed, and not-run checks. Performance claims also need comparable measurements and uncertainty. Scale length to the task, but never drop a required report field.

Files

references/build-perf-diagnostics.md

Diagnosing MSBuild Build Performance

Source: original build-perf-diagnostics skill.

Performance Analysis Methodology

  1. Establish the relevant cold, warm changed-input, or no-change baseline. Keep Rebuild and ordinary Build distinct.

  2. Use an existing matching binlog first. If one is missing, follow binlog generation without changing the reported scenario.

  3. Replay the binary log locally to a diagnostic text log with a performance summary. The searches below assume that log is named full-01.log, as in the replay command; use its actual path.

  4. Find expensive projects, targets, and tasks, then inspect the corresponding instance, execution reason, inputs, and dependency waits. Select one cause for a controlled change, not every plausible optimization.

Performance summaries report cumulative/inclusive durations, not additive shares of elapsed wall time or CPU usage. Parallel work overlaps; orchestration targets and tasks can include child work and waits.

In particular, ResolveProjectReferences can mostly represent waiting for dependent builds, while a yielded node performs other work. Do not optimize it solely because it tops the target summary. Follow the dependencies to actual Csc, ResolveAssemblyReference, Copy, or custom-task work. Even MSBuild task duration can include child builds rather than exclusive self-time.

Key Metrics and Thresholds

Use these as investigation hints, not universal budgets or proof of a cause:

  • Build duration: historical rough examples are under 10 seconds for a small workload, 60 seconds for a medium one, and 5 minutes for a large one. Compare the repository's actual scenario and machine, not labels alone.

  • Node utilization: activity below roughly 80% warrants checking dependency waits, limited parallel work, and resource contention. Text-summary totals alone cannot establish utilization.

  • Single-target domination: investigate a target near or above 50% of elapsed build time, but separate inclusive waits and nested work.

  • Analyzer versus compiler time: around 30% or more of Csc time deserves investigation. Analyzer timings can overlap; do not add them as wall time or remove diagnostics solely to reach a percentage.

  • RAR time: over 5 seconds per project, especially over 15 seconds, merits examination of reference count, paths, and resolution work.

Common Bottlenecks

1. ResolveAssemblyReference (RAR) Slowness
  • Symptoms: substantial ResolveAssemblyReference task time, for example over 5 seconds per affected project.

  • Root causes: many assembly references, network-based paths, or expensive assembly search paths.

  • Fixes: remove demonstrated unused references/search paths and avoid unnecessary network resolution, preserving all consumers.

  • Diagnostic guardrail: DesignTimeBuild, ResolveAssemblyReferencesSilent, and ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch affect build or diagnostic behavior; changing them is not an established RAR performance fix.

  • Key insight: RAR can legitimately execute on no-change builds to account for external resolution state, including installed targeting packs or GAC assemblies. Do not force it to skip using an incomplete freshness check.

  • Reduce transitive references carefully: DisableTransitiveProjectReferences is a last resort requiring explicit references to consumed dependencies. ReferenceOutputAssembly="false" is appropriate when only build ordering is needed, but still retains that ordering. Trim only unused package references. Use the dependency-graph audit.

2. Roslyn Analyzers and Source Generators
  • Symptoms: Csc takes much longer than a comparable compilation, sometimes more than twice a measured compiler-only scenario.

  • Diagnosis: inspect Csc and analyzer/generator timing in the replayed log. If timing detail is absent, obtain compiler-supported diagnostic timing rather than guessing from package count. A controlled -p:RunAnalyzers=false comparison must compile the same inputs on both sides, not compare a no-op against forced compilation.

  • Conditional development policy: after measuring and agreeing the policy, examples include:

    <PropertyGroup>
      <RunAnalyzers Condition="'$(ContinuousIntegrationBuild)' != 'true'">false</RunAnalyzers>
      <EnforceCodeStyleInBuild Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</EnforceCodeStyleInBuild>
    </PropertyGroup>
  • Per-configuration: if development Debug builds are the intended scope, also guard the CI case, for example Condition="'$(Configuration)' == 'Debug' and '$(ContinuousIntegrationBuild)' != 'true'". CI can build Debug too.

  • Rule/package scope: configure genuinely redundant or expensive diagnostics appropriately, including .editorconfig severity policy, instead of blindly removing analyzer packages.

  • Key principle: preserve required analyzer enforcement in CI. Verify effective properties and that the pipeline actually sets the CI signal. A conditional assignment does not undo an earlier or later unconditional override.

  • Source generators: do not assume RunAnalyzers=false disables or measures every generator. Preserve required generated code and inspect generator-specific evidence.

  • GlobalPackageReference: examine the project, Directory.Build.props, Directory.Packages.props, and package imports. Active global analyzer references can affect production and test projects; a declaration alone does not prove restoration or inclusion in the compiler's analyzer list.

  • EnforceCodeStyleInBuild: when enabled it adds code-style checks to compiler execution; it does not mean analyzers execute when compilation itself skips. Conditionalize only under an agreed development/CI policy.

3. Serialization Bottlenecks (Single-threaded Targets)
  • Symptoms: one project dominates while other nodes are idle or waiting.

  • Common culprits: a long dependency chain, a critical-path project, or custom orchestration issuing independent project requests sequentially.

  • Fixes: optimize the measured critical path, remove false dependencies, or split a bottleneck only when it exposes independent work. In custom MSBuild tasks, BuildInParallel="true" also needs multiple available nodes.

  • Follow parallel build tuning. More nodes cannot parallelize required serial dependencies.

4. Excessive File I/O (Copy Tasks)
  • Symptoms: high Copy aggregate time or excessive copy invocations.

  • Root causes: thousands of unnecessary files, network destinations, or accidental per-item task batching instead of an appropriate item batch.

  • First fixes: inspect item metadata, source/destination paths, and invocation counts. Reduce only unnecessary copies and choose the correct copy mode; replacing Always blindly with PreserveNewest can leave mutated destination files stale.

  • Skip unchanged files: inspect whether the actual target consumes SkipCopyUnchangedFiles; it may already be true. Custom Copy tasks expose SkipUnchangedFiles. Neither setting is a content-hash comparison.

  • Hardlinks: identify the hot copy target in the binlog, then set only the property that target passes to Copy.UseHardlinksIfPossible: CreateHardLinksForCopyFilesToOutputDirectoryIfPossible for primary build outputs, CreateHardLinksForAdditionalFilesIfPossible for content/additional files, or CreateHardLinksForCopyLocalIfPossible for copy-local references. Custom Copy tasks need their own UseHardlinksIfPossible value. Hardlinks can help compatible same-volume, immutable-file workloads. A destination mutation through a hardlink can modify its source, so do not use this for writable/resettable content.

  • Shared layout: UseCommonOutputDirectory=true assumes a genuinely shared, collision-free output layout. Verify ownership and consumers first. Artifacts output, including --artifacts-path, requires SDK 8+ and is a separate measured layout change.

  • Dev Drive: on supported Windows development or self-hosted CI machines, evaluate Dev Drive for a measured I/O bottleneck. Do not promise automatic copy-on-write gains for every task or disable security tooling for a benchmark.

5. Evaluation Overhead
  • Symptoms: significant startup/evaluation time before target execution.

  • Root causes: expensive Directory.Build.props logic, globs traversing large trees, imports, or SDK-resolution overhead. NuGet-based SDK resolver latency depends on the toolset and environment; historical timings are not a fixed per-project cost.

  • Fixes: simplify only measured costly logic and narrow offending globs. EnableDefaultItems=false is a last resort requiring complete intentional item lists, not the first optimization. Changing SDK resolution must preserve the build's actual SDK contract.

  • Use evaluation performance for focused evidence and fixes.

6. NuGet Restore in Build
  • Symptoms: restore contributes substantial work repeatedly. Distinguish an up-to-date check from actual repeated network/dependency-resolution work.

  • Separate restore from build: successfully restore matching inputs, then use dotnet build --no-restore. Keep build-only and restore-inclusive baselines distinct; dependency changes require fresh assets.

  • Static graph restore: RestoreUseStaticGraphEvaluation=true in Directory.Build.props is a candidate for a measured large restore graph. Validate equivalent resolved assets and toolset support. It is distinct from graph build and its benefit is workload-dependent.

  • Investigate changing inputs and feed/cache behavior rather than purging shared package caches.

7. Large Project Count and Graph Shape
  • Symptoms: many tiny projects add evaluation/invocation overhead, or deep dependency chains serialize otherwise parallelizable work.

  • Consider: graph mode for scheduling, consolidating small leaves for measured overhead, or splitting a large bottleneck into independent pieces. These are different remedies for different evidence.

  • Graph shape matters: wide independent branches expose parallelism; a long required chain remains serial regardless of node count.

  • Actions: identify the exact unnecessary edge or costly project. Preserve direct API/metadata contracts and compare the resulting critical path. Static graph builds do not automatically provide isolation or a cache.

Using Binlog Replay for Performance Analysis

  1. Replay the existing binlog with diagnostic verbosity and a performance summary.

  2. Read the target/task summaries, usually near the end of the replayed log:

    Select-String -Path .\full-01.log -Pattern 'Target Performance Summary|Task Performance Summary' -Context 0,50

    Use the cumulative timings to select candidates, not to compute additive percentages of elapsed build time.

  3. Find per-project timings and instances:

    Select-String -Path .\full-01.log -Pattern 'Done Building Project|Project Performance Summary' -Context 0,20
  4. Inspect recorded scheduling evidence:

    Select-String -Path .\full-01.log -Pattern 'node.*assigned|building with|scheduler'

    These messages alone are not a utilization measurement. Report missing scheduling/timestamp detail rather than inferring an exact timeline.

  5. Check analyzer timing, when the original capture contains it:

    Select-String -Path .\full-01.log -Pattern 'Total analyzer execution time|analyzer.*elapsed|CompilerAnalyzerDriver'
  6. Drill into the relevant project's slow target and its tasks:

    Select-String -Path .\full-01.log -Pattern 'Target "CoreCompile"|Target "ResolveAssemblyReferences"' -Context 0,20

Quick Wins Checklist

Choose only items supported by the diagnosis, one experiment at a time:

  • [ ] Confirm the intended -m node budget rather than assuming host defaults.

  • [ ] Separate restore and build only with current matching assets.

  • [ ] Measure static graph restore and verify equivalent assets.

  • [ ] Consider hardlinks only for compatible immutable-file workloads.

  • [ ] Scope analyzer changes to an agreed development policy; retain CI enforcement.

  • [ ] Inspect ProduceReferenceAssembly before enabling it; many SDK configurations already enable it. Verify implementation-only and public-API changes downstream.

  • [ ] Check incremental behavior on an ordinary second build.

  • [ ] Inspect evaluated output/intermediate paths for collisions between projects, configurations, TFMs, and RIDs; do not just give everything one common directory.

  • [ ] Measure graph mode for a statically discoverable multi-project build.

  • [ ] Evaluate SDK 8+ artifacts layout only with its path-consumer checks.

  • [ ] Consider a separate Dev Drive environment experiment for Windows I/O limits.

Impact Categorization

  • HIGH IMPACT: a verified critical-path cost above roughly 10% of elapsed build time, or substantial real work behind a target reported above 50%.

  • MEDIUM IMPACT: verified costs around 2-10%.

  • QUICK WINS: low-effort changes with demonstrated modest benefit, not unmeasured property toggles.

Report the project/TFM, target/task, evidence, one targeted change, and a same-scenario before/after comparison with spread. Verify required artifacts, diagnostics, and relevant tests/consumers. Stop if the result is unmeasured, within noise, or breaks correctness; do not claim success from disabled validation or inclusive timing arithmetic.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Node.js

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
.NET (Microsoft)
Publisher
.NET (Microsoft) (Official)
Source
dotnet/skills · plugins/dotnet/skills/msbuild · commit 96c3d68
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by .NET (Microsoft) or .NET (Microsoft).

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download msbuild.zip