Engine Constructor (BuildPropertyGroup, ToolsetDefinitionLocations, Int32, String)
Initializes a new instance of the Engine class.
Namespace: Microsoft.Build.BuildEngine
Assembly: Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)
public Engine( BuildPropertyGroup globalProperties, ToolsetDefinitionLocations locations, int numberOfCpus, string localNodeProviderParameters )
Parameters
- globalProperties
- Type: Microsoft.Build.BuildEngine.BuildPropertyGroup
A BuildPropertyGroup that represents properties to be passed to the child engine.
- locations
- Type: Microsoft.Build.BuildEngine.ToolsetDefinitionLocations
A ToolsetDefinitionLocations enumeration specifies the location of the Toolset definition.
- numberOfCpus
- Type: System.Int32
An integer that specifies the number of CPUs or cores in the system.
- localNodeProviderParameters
- Type: System.String
A string of parameters that are used to configure the MSBuild engine. You must format the parameters as ParameterName=ParameterValue. The valid semicolon-separated, optional parameters are as follows:
MSBUILDLOCATION Indicates where the build process can find MSBuild.exe. This path enables the MSBuild engine to locate MSBuild.exe and start it as a local node. MSBUILDLOCATION is the only essential parameter for a host. The default value is C:\Windows\Microsoft.Net\Framework\v3.5\.
NODEREUSE Indicates whether the child nodes should remain after the build finishes, in case they can be used later by another build. The nodes are discarded automatically after one minute of non-use. The default value is true.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.