MSBuildSettingsExtensions.

SetMaxCpuCount(MSBuildSettings, int?) Method

Summary

Sets the maximum CPU count. Without this set MSBuild will compile projects in this solution one at a time.

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.