DotNetCoreMSBuildSettingsExtensions.

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

Parameters

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