Dotnet Msbuild

Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization.

by @dotnet 19 skills

Skills in this plugin

19
  1. ▌
    Msbuild Server · dotnet
    Improve CLI build performance by enabling MSBuild Server for persistent caching of evaluation results across sequential builds.
    22.1k repo stars
  2. ▌
    Item Management · dotnet
    Provides canonical patterns for MSBuild item groups: Include/Remove/Update semantics, item metadata, batching with %(Metadata), transforms, per-item filtering, and cross-product batching pitfalls.
    22.1k repo stars
  3. ▌
    Eval Performance · dotnet
    Diagnose and improve MSBuild project evaluation performance by analyzing phases, glob patterns, import chains, and property functions.
    22.1k repo stars
  4. ▌
    Extension Points · dotnet
    Guides MSBuild extensibility through CustomBefore/CustomAfter hooks, wildcard imports, import gating, and NuGet package build extension layout.
    22.1k repo stars
  5. ▌
    Target Authoring · dotnet
    Canonical patterns for writing custom MSBuild targets, covering the three-level target chain, chain extension, DependsOnTargets vs BeforeTargets vs AfterTargets, Returns vs Outputs, and common pitfalls.
    22.1k repo stars
  6. ▌
    Binlog Generation · dotnet
    Add the /bl switch to MSBuild-based commands to generate binary logs for build diagnostics and performance analysis.
    22.1k repo stars
  7. ▌
    Build Parallelism · dotnet
    Optimize MSBuild build parallelism by configuring /maxcpucount, graph build mode, project references, and analyzing binlogs to reduce multi-project solution build times.
    22.1k repo stars
  8. ▌
    Incremental Build · dotnet
    Diagnose and fix slow MSBuild incremental builds by identifying why targets re-execute unnecessarily, covering common causes like missing Inputs/Outputs, volatile properties, and FileWrites registration.
    22.1k repo stars
  9. ▌
    Property Patterns · dotnet
    Provides canonical MSBuild property definition patterns including conditional defaults, composition, path normalization, target framework detection, and evaluation order for diagnosing and fixing property issues in .props and .csproj files.
    22.1k repo stars
  10. ▌
    Build Perf Baseline · dotnet
    Measure and optimize .NET build performance by establishing baselines, enabling MSBuild Server, using artifacts output, and trimming dependency graphs.
    22.1k repo stars
  11. ▌
    Check Bin Obj Clash · dotnet
    Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath to diagnose build failures.
    22.1k repo stars
  12. ▌
    Msbuild Antipatterns · dotnet bundle
    Detects and fixes common MSBuild anti-patterns in .csproj, .vbproj, .fsproj, .props, .targets, and .proj files, covering Exec misuse, unquoted conditions, hardcoded paths, and more.
    22.1k repo stars
  13. ▌
    Msbuild Modernization · dotnet
    Migrate legacy MSBuild project files to SDK-style format, reducing .csproj complexity and enabling modern .NET features.
    22.1k repo stars
  14. ▌
    Build Perf Diagnostics · dotnet
    Diagnose MSBuild build performance bottlenecks using binary log analysis, covering timeline analysis, performance summary interpretation, and seven common bottleneck categories.
    22.1k repo stars
  15. ▌
    Binlog Failure Analysis · dotnet bundle
    Diagnose MSBuild build failures by analyzing .binlog files using an MCP server or text-log replay.
    22.1k repo stars
  16. ▌
    Copy To Output Directory · dotnet
    Choosing an MSBuild CopyToOutputDirectory / CopyToPublishDirectory mode: Never, PreserveNewest, Always, and IfDifferent (MSBuild 17.13+), plus $(SkipUnchangedFilesOnCopyAlways). USE FOR: removing the per-build Always copy perf hit; resetting output files mutated between builds. DO NOT USE FOR: general incremental-build diagnosis (use incremental-build); non-MSBuild build systems.
    22.1k repo stars
  17. ▌
    Including Generated Files · dotnet
    Fix MSBuild targets so generated files are compiled, copied to output, and cleaned properly.
    22.1k repo stars
  18. ▌
    Resolve Project References · dotnet
    Prevents misguided optimization of MSBuild's ResolveProjectReferences target by explaining that its reported time is wall-clock wait time, not CPU work, and redirects to task self-time analysis.
    22.1k repo stars
  19. ▌
    Directory Build Organization · dotnet bundle
    Organize multi-project .NET repos with Directory.Build.props, Directory.Build.targets, Directory.Packages.props, and Directory.Build.rsp for centralized MSBuild settings and NuGet Central Package Management.
    22.1k repo stars