Optimizing Msbuild Performance

Guides performance optimization for MSBuild engine code. Consult when working on hot paths in evaluation or execution, reducing allocations, choosing collection types, handling strings efficiently, modifying Expander.cs or Evaluator.cs, using Span<T>/stackalloc, caching values, or profiling build performance. Also applies when reviewing PRs for performance regression.

.NET (Microsoft) Updated 22.1k repo stars

File contents

dotnet/msbuild commit b2654587ff

Frequently asked questions

npx get-skill add dotnet/optimizing-msbuild-performance