Toolset Constructors

Definition

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

Overloads

Toolset(String, String, ProjectCollection, String)

Constructor taking only tools version and a matching tools path

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

Constructor that also associates a set of properties with the tools version

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

Constructor that also associates a set of properties with the tools version

Toolset(String, String, ProjectCollection, String)

Constructor taking only tools version and a matching tools path

public:
 Toolset(System::String ^ toolsVersion, System::String ^ toolsPath, Microsoft::Build::Evaluation::ProjectCollection ^ projectCollection, System::String ^ msbuildOverrideTasksPath);
public Toolset (string toolsVersion, string toolsPath, Microsoft.Build.Evaluation.ProjectCollection projectCollection, string msbuildOverrideTasksPath);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public Toolset (string toolsVersion, string toolsPath, Microsoft.Build.Evaluation.ProjectCollection projectCollection, string msbuildOverrideTasksPath);
new Microsoft.Build.Evaluation.Toolset : string * string * Microsoft.Build.Evaluation.ProjectCollection * string -> Microsoft.Build.Evaluation.Toolset
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.Evaluation.Toolset : string * string * Microsoft.Build.Evaluation.ProjectCollection * string -> Microsoft.Build.Evaluation.Toolset
Public Sub New (toolsVersion As String, toolsPath As String, projectCollection As ProjectCollection, msbuildOverrideTasksPath As String)

Parameters

toolsVersion
String

Name of the toolset

toolsPath
String

Path to this toolset's tasks and targets

projectCollection
ProjectCollection

The project collection from which to obtain the properties.

msbuildOverrideTasksPath
String

The path to search for msbuild overridetasks files.

Attributes

Applies to

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

Constructor that also associates a set of properties with the tools version

public:
 Toolset(System::String ^ toolsVersion, System::String ^ toolsPath, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ buildProperties, Microsoft::Build::Evaluation::ProjectCollection ^ projectCollection, System::String ^ msbuildOverrideTasksPath);
public Toolset (string toolsVersion, string toolsPath, System.Collections.Generic.IDictionary<string,string> buildProperties, Microsoft.Build.Evaluation.ProjectCollection projectCollection, string msbuildOverrideTasksPath);
new Microsoft.Build.Evaluation.Toolset : string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Build.Evaluation.ProjectCollection * string -> Microsoft.Build.Evaluation.Toolset
Public Sub New (toolsVersion As String, toolsPath As String, buildProperties As IDictionary(Of String, String), projectCollection As ProjectCollection, msbuildOverrideTasksPath As String)

Parameters

toolsVersion
String

Name of the toolset

toolsPath
String

Path to this toolset's tasks and targets

buildProperties
IDictionary<String,String>

Properties that should be associated with the Toolset. May be null, in which case an empty property group will be used.

projectCollection
ProjectCollection

The project collection that this toolset should inherit from

msbuildOverrideTasksPath
String

The override tasks path.

Applies to

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

Constructor that also associates a set of properties with the tools version

public:
 Toolset(System::String ^ toolsVersion, System::String ^ toolsPath, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ buildProperties, Microsoft::Build::Evaluation::ProjectCollection ^ projectCollection, System::Collections::Generic::IDictionary<System::String ^, Microsoft::Build::Evaluation::SubToolset ^> ^ subToolsets, System::String ^ msbuildOverrideTasksPath);
public Toolset (string toolsVersion, string toolsPath, System.Collections.Generic.IDictionary<string,string> buildProperties, Microsoft.Build.Evaluation.ProjectCollection projectCollection, System.Collections.Generic.IDictionary<string,Microsoft.Build.Evaluation.SubToolset> subToolsets, string msbuildOverrideTasksPath);
new Microsoft.Build.Evaluation.Toolset : string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Build.Evaluation.ProjectCollection * System.Collections.Generic.IDictionary<string, Microsoft.Build.Evaluation.SubToolset> * string -> Microsoft.Build.Evaluation.Toolset
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)

Parameters

toolsVersion
String

Name of the toolset

toolsPath
String

Path to this toolset's tasks and targets

buildProperties
IDictionary<String,String>

Properties that should be associated with the Toolset. May be null, in which case an empty property group will be used.

projectCollection
ProjectCollection

The project collection that this toolset should inherit from

subToolsets
IDictionary<String,SubToolset>

The set of sub-toolsets to add to this toolset

msbuildOverrideTasksPath
String

The override tasks path.

Applies to