共用方式為


Toolset Constructor (String, String, ProjectCollection, String)

Creates a toolset with the given tools version and tools path. Global, reserved, and environment properties are taken from the given project collection.

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.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Sub New ( _
    toolsVersion As String, _
    toolsPath As String, _
    projectCollection As ProjectCollection, _
    msbuildOverrideTasksPath As String _
)
public Toolset(
    string toolsVersion,
    string toolsPath,
    ProjectCollection projectCollection,
    string msbuildOverrideTasksPath
)
public:
Toolset(
    String^ toolsVersion, 
    String^ toolsPath, 
    ProjectCollection^ projectCollection, 
    String^ msbuildOverrideTasksPath
)
new : 
        toolsVersion:string * 
        toolsPath:string * 
        projectCollection:ProjectCollection * 
        msbuildOverrideTasksPath:string -> Toolset
public function Toolset(
    toolsVersion : String, 
    toolsPath : String, 
    projectCollection : ProjectCollection, 
    msbuildOverrideTasksPath : String
)

Parameters

  • toolsPath
    Type: System.String

    Path to this toolset's tasks and targets

  • msbuildOverrideTasksPath
    Type: System.String

    The path to search for msbuild overridetasks files.

.NET Framework Security

See Also

Reference

Toolset Class

Toolset Overload

Microsoft.Build.Evaluation Namespace