Engine Constructor (BuildPropertyGroup, ToolsetDefinitionLocations, Int32, String)
Initializes a new instance of the Engine class.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Namespace: Microsoft.Build.BuildEngine
Assembly: Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)
Syntax
'Declaration
Public Sub New ( _
globalProperties As BuildPropertyGroup, _
locations As ToolsetDefinitionLocations, _
numberOfCpus As Integer, _
localNodeProviderParameters As String _
)
public Engine(
BuildPropertyGroup globalProperties,
ToolsetDefinitionLocations locations,
int numberOfCpus,
string localNodeProviderParameters
)
public:
Engine(
BuildPropertyGroup^ globalProperties,
ToolsetDefinitionLocations locations,
int numberOfCpus,
String^ localNodeProviderParameters
)
new :
globalProperties:BuildPropertyGroup *
locations:ToolsetDefinitionLocations *
numberOfCpus:int *
localNodeProviderParameters:string -> Engine
public function Engine(
globalProperties : BuildPropertyGroup,
locations : ToolsetDefinitionLocations,
numberOfCpus : int,
localNodeProviderParameters : String
)
Parameters
globalProperties
Type: Microsoft.Build.BuildEngine.BuildPropertyGroupA BuildPropertyGroup that represents properties to be passed to the child engine.
locations
Type: Microsoft.Build.BuildEngine.ToolsetDefinitionLocationsA ToolsetDefinitionLocations enumeration specifies the location of the Toolset definition.
numberOfCpus
Type: System.Int32An integer that specifies the number of CPUs or cores in the system.
localNodeProviderParameters
Type: System.StringA 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.