Loading...
Loading...
Guide for diagnosing and improving MSBuild project evaluation performance. Only activate in MSBuild/.NET build context. Use when builds are slow before any compilation starts, when evaluation time is high in binlog analysis, or when dealing with expensive glob patterns and deep import chains. Covers evaluation phases, glob optimization, import chain analysis, and /pp preprocessing.
npx skill4agent add dotnet/skills eval-performance<Import><PropertyGroup><ItemDefinitionGroup><ItemGroup>IncludeRemoveUpdatedotnet msbuild build.binlog -noconlog -fl -flp:v=diag;logfile=full.loggrep -i 'Evaluation started\|Evaluation finished' full.logdotnet msbuild -pp:full.xml MyProject.csproj**/*.csnode_modules/.git/bin/obj/<DefaultItemExcludes>src/**/*.cs**/*.cs<EnableDefaultItems>false</EnableDefaultItems>/pp<!-- Importinggrep 'Evaluation started.*ProjectName' full.log/graph$([System.IO.File]::ReadAllText(...))dotnet msbuild -pp:full.xml