Summary
Sets the maximum CPU count. Without this set MSBuild will compile projects in this solution one at a time.
- Namespace
- Cake
.Common .Tools .MSBuild - Containing Type
- M
S Build Settings Extensions
Syntax
public static MSBuildSettings SetMaxCpuCount(this MSBuildSettings settings, int? maxCpuCount)
Parameters
Name | Type | Description |
---|---|---|
settings | MSBuildSettings | The settings. |
maxCpuCount | int? | The maximum CPU count. Set this value to zero to use as many MSBuild processes as available CPUs. |
Return Value
Type | Description |
---|---|
MSBuildSettings | The same MSBuildSettings instance so that multiple calls can be chained. |