Share via


Toolset Constructor (String, String, BuildPropertyGroup)

Creates a Toolset object.

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 ( _
    toolsVersion As String, _
    toolsPath As String, _
    buildProperties As BuildPropertyGroup _
)
public Toolset(
    string toolsVersion,
    string toolsPath,
    BuildPropertyGroup buildProperties
)
public:
Toolset(
    String^ toolsVersion, 
    String^ toolsPath, 
    BuildPropertyGroup^ buildProperties
)
new : 
        toolsVersion:string * 
        toolsPath:string * 
        buildProperties:BuildPropertyGroup -> Toolset
public function Toolset(
    toolsVersion : String, 
    toolsPath : String, 
    buildProperties : BuildPropertyGroup
)

Parameters

  • toolsVersion
    Type: System.String

    A string representing the version of the Toolset currently in use.

Remarks

An ArgumentNullException error is thrown if any of the parameter values are nulla null reference (Nothing in Visual Basic). An ArgumentException error is thrown for invalid argument values such as empty strings.

.NET Framework Security

See Also

Reference

Toolset Class

Toolset Overload

Microsoft.Build.BuildEngine Namespace