Partager via


Toolset Constructor (String, String, IDictionary<String, String>, ProjectCollection, IDictionary<String, SubToolset>, 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, _
    buildProperties As IDictionary(Of String, String), _
    projectCollection As ProjectCollection, _
    subToolsets As IDictionary(Of String, SubToolset), _
    msbuildOverrideTasksPath As String _
)
public Toolset(
    string toolsVersion,
    string toolsPath,
    IDictionary<string, string> buildProperties,
    ProjectCollection projectCollection,
    IDictionary<string, SubToolset> subToolsets,
    string msbuildOverrideTasksPath
)
public:
Toolset(
    String^ toolsVersion, 
    String^ toolsPath, 
    IDictionary<String^, String^>^ buildProperties, 
    ProjectCollection^ projectCollection, 
    IDictionary<String^, SubToolset^>^ subToolsets, 
    String^ msbuildOverrideTasksPath
)
new : 
        toolsVersion:string * 
        toolsPath:string * 
        buildProperties:IDictionary<string, string> * 
        projectCollection:ProjectCollection * 
        subToolsets:IDictionary<string, SubToolset> * 
        msbuildOverrideTasksPath:string -> Toolset
public function Toolset(
    toolsVersion : String, 
    toolsPath : String, 
    buildProperties : IDictionary<String, String>, 
    projectCollection : ProjectCollection, 
    subToolsets : IDictionary<String, SubToolset>, 
    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.

  • subToolsets
    Type: IDictionary<String, SubToolset>

    The set of sub toolsets to add to this toolset.

  • msbuildOverrideTasksPath
    Type: System.String

    The path to search for msbuild overridetasks files. The set of sub-toolsets to add to this toolset

.NET Framework Security

See Also

Reference

Toolset Class

Toolset Overload

Microsoft.Build.Evaluation Namespace