Condividi tramite


Toolset Constructor (String, String)

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

Parameters

  • toolsVersion
    Type: System.String

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

Remarks

An ArgumentNullException error is thrown if either parameter value is 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