DotNetMSBuildSettingsExtensions.

SetMaxCpuCount(DotNetMSBuildSettings, 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 DotNetMSBuildSettings SetMaxCpuCount(this DotNetMSBuildSettings settings, int? maxCpuCount)

Parameters

Name Type Description
settings DotNetMSBuildSettings 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
DotNetMSBuildSettings The same DotNetMSBuildSettings instance so that multiple calls can be chained.