Summary
Sets the maximum CPU count. Without this set MSBuild will compile projects in this solution one at a time.
- Namespace
- Cake
.Common .Tools .DotNet .MSBuild - Containing Type
- Dot
Net M S Build Settings Extensions
Syntax
public static DotNetMSBuildSettings SetMaxCpuCount(this DotNetMSBuildSettings settings, int? maxCpuCount)
Parameters
Name | Type | Description |
---|---|---|
settings | Dot |
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 |
---|---|
Dot |
The same DotNetMSBuildSettings instance so that multiple calls can be chained. |