MSBuild Evaluation Performance Optimizer

•
1.2k
•

Diagnoses and optimizes MSBuild project evaluation performance to eliminate slow build starts and resource-heavy preprocessing.

This skill provides specialized guidance for identifying and fixing performance bottlenecks during the MSBuild evaluation phase—the stage that occurs before any actual compilation begins. It equips developers with the logic to analyze binary logs, inspect deep import chains using preprocessing tools, and optimize expensive glob patterns that inadvertently walk large directories like node_modules or .git. By addressing issues such as redundant evaluations, inefficient property functions, and excessive file I/O, this skill ensures faster .NET development cycles and more efficient CI/CD pipelines.

主要功能

011,215 GitHub stars
02Auditing of expensive property functions and file I/O during evaluation
03Optimization of expensive glob patterns using DefaultItemExcludes
04Deep import chain analysis via project preprocessing (/pp)
05Analysis of the 5 MSBuild evaluation phases (Properties, Imports, Items, etc.)
06Identification of redundant project evaluations in multi-targeted builds

使用场景

01Reducing high CPU and disk usage during the evaluation of large .NET monorepos
02Fixing slow build starts where there is a long delay before compilation begins
03Optimizing CI/CD pipelines by eliminating redundant MSBuild project evaluations