dotnet-msbuild
Overview
Use this skill for MSBuild and .NET build work, including build failures, slow builds, SDK-style modernization, analyzers, targets, props, and CI build behavior using dotnet/skills.
Workflow
- Inspect
.sln, .csproj, Directory.Build.*, global.json, package props, targets, and CI definitions.
- Reproduce the build issue with the smallest command that exercises the failing target.
- Diagnose property, item, target, SDK, package, and workload interactions with build logs when needed.
- Validate changes with restore/build/test or the affected CI command.
Guardrails
- Do not flatten project files or remove targets without proving they are unused.
- Preserve multi-targeting, packaging, analyzers, source generation, and CI behavior.
- Keep performance and modernization changes measurable.
Expected Output
Return build-focused changes or guidance with the relevant MSBuild evidence and verification.
1---2name: dotnet-msbuild3description: Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization.4license: MIT5---67# dotnet-msbuild89## Overview1011Use this skill for MSBuild and .NET build work, including build failures, slow builds, SDK-style modernization, analyzers, targets, props, and CI build behavior using [dotnet/skills](https://github.com/dotnet/skills).1213## Workflow14151. Inspect `.sln`, `.csproj`, `Directory.Build.*`, `global.json`, package props, targets, and CI definitions.162. Reproduce the build issue with the smallest command that exercises the failing target.173. Diagnose property, item, target, SDK, package, and workload interactions with build logs when needed.184. Validate changes with restore/build/test or the affected CI command.1920## Guardrails2122- Do not flatten project files or remove targets without proving they are unused.23- Preserve multi-targeting, packaging, analyzers, source generation, and CI behavior.24- Keep performance and modernization changes measurable.2526## Expected Output2728Return build-focused changes or guidance with the relevant MSBuild evidence and verification.