Guide for optimizing MSBuild build parallelism and multi-project scheduling. USE FOR: builds not utilizing all CPU cores, speeding up multi-project solutions, evaluating graph build mode (/graph), build time not improving with -m flag, understanding project dependency topology. Note: /maxcpucount default is 1 (sequential) — always use -m for parallel builds. Covers /maxcpucount, graph build for better scheduling and isolation, BuildInParallel on MSBuild task, reducing unnecessary ProjectReferen…
Guide for optimizing MSBuild build parallelism and multi-project scheduling.
USE FOR: builds not utilizing all CPU cores, speeding up multi-project solutions, evaluating graph build mode (/graph), build time not improving with -m flag, understanding project dependency topology.
Note: /maxcpucount default is 1 (sequential) — always use -m for parallel builds.
Covers /maxcpucount, graph build for better scheduling and isolation, BuildInParallel on MSBuild task, reducing unnecessary ProjectReferences, solution filters (.slnf) for building subsets.
DO NOT USE FOR: single-project builds, incremental build issues (use incremental-build), compilation slowness within a project (use build-perf-diagnostics), non-MSBuild build systems.
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars1.0K
LicenseLICENSE
Default branchmain
Open issues55
Status
Archived
Skill metadata
Parsed from SKILL.md frontmatter.
LicenseMIT
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md4,651 B
docsSUMMARY.md761 B
History
First seen on skills.sh
First recorded snapshot · 1 installs
SKILL.md
MSBuild Parallelism Model
/maxcpucount (or -m): number of worker nodes (processes)
Default: 1 node (sequential!). Always use -m for parallel builds
Recommended: -m without a number = use all logical processors
Each node builds one project at a time
Projects are scheduled based on dependency graph
Project Dependency Graph
MSBuild builds projects in dependency order (topological sort)
Critical path: longest chain of dependent projects determines minimum build time
Bottleneck: if project A depends on B, C, D and B takes 60s while C and D take 5s, B is the bottleneck
Diagnosis: replay binlog to diagnostic log with performancesummary and check Project Performance Summary — shows per-project time; grep for node.*assigned to check scheduling