共用方式為


Toolset Constructor (String, String, IDictionary<String, String>, ProjectCollection, String)

Creates a toolset with the given tools version, tools path, and build properties. 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, _
    buildProperties As IDictionary(Of String, String), _
    projectCollection As ProjectCollection, _
    msbuildOverrideTasksPath As String _
)
public Toolset(
    string toolsVersion,
    string toolsPath,
    IDictionary<string, string> buildProperties,
    ProjectCollection projectCollection,
    string msbuildOverrideTasksPath
)
public:
Toolset(
    String^ toolsVersion, 
    String^ toolsPath, 
    IDictionary<String^, String^>^ buildProperties, 
    ProjectCollection^ projectCollection, 
    String^ msbuildOverrideTasksPath
)
new : 
        toolsVersion:string * 
        toolsPath:string * 
        buildProperties:IDictionary<string, string> * 
        projectCollection:ProjectCollection * 
        msbuildOverrideTasksPath:string -> Toolset
public function Toolset(
    toolsVersion : String, 
    toolsPath : String, 
    buildProperties : IDictionary<String, String>, 
    projectCollection : ProjectCollection, 
    msbuildOverrideTasksPath : String
)

Parameters

  • toolsPath
    Type: System.String

    Path to this toolset's tasks and targets

  • buildProperties
    Type: IDictionary<String, String>

    Properties that should be associated with the Toolset.

    May be null, in which case an empty property group will be used.

  • 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