Loading...
Loading...
Guide for optimizing MSBuild build parallelism and multi-project scheduling. Only activate in MSBuild/.NET build context. Use when builds are not utilizing all CPU cores, when looking to speed up multi-project builds, or when evaluating graph build mode. Covers /maxcpucount, project dependency graphs, graph build (/graph), BuildInParallel, and reducing unnecessary project references.
npx skill4agent add dotnet/skills build-parallelism/maxcpucount-m-m-mperformancesummarynode.*assigned/graphdotnet build /graphmsbuild /graph<ProjectReference><ProjectReference><ProjectReference ... SkipGetTargetFrameworkProperties="true"><ProjectReference ... ReferenceOutputAssembly="false">solution filters.slnf<MSBuild Projects="@(ProjectsToBuild)" BuildInParallel="true" />BuildInParallel="true"/maxcpucountIMultiThreadableTask[MSBuildMultiThreadableTask]dotnet msbuild build.binlog -noconlog -fl -flp:v=diag;logfile=full.log;performancesummaryfull.loggrep 'Target Performance Summary' -A 30 full.log-mdotnet build /graph