Compartir a través de


Toolset Constructors

Definition

Creates a Toolset object.

Overloads

Toolset(String, String)

Creates a Toolset object.

Toolset(String, String, BuildPropertyGroup)

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

Toolset(String, String)

Source:
Toolset.cs

Creates a Toolset object.

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

Parameters

toolsVersion
String

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

toolsPath
String

A string representing the path to the Toolset currently in use.

Attributes

Remarks

An ArgumentNullException error is thrown if either parameter value is null. An ArgumentException error is thrown for invalid argument values such as empty strings.

Applies to

Toolset(String, String, BuildPropertyGroup)

Source:
Toolset.cs

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

public:
 Toolset(System::String ^ toolsVersion, System::String ^ toolsPath, Microsoft::Build::BuildEngine::BuildPropertyGroup ^ buildProperties);
public Toolset (string toolsVersion, string toolsPath, Microsoft.Build.BuildEngine.BuildPropertyGroup buildProperties);
new Microsoft.Build.BuildEngine.Toolset : string * string * Microsoft.Build.BuildEngine.BuildPropertyGroup -> Microsoft.Build.BuildEngine.Toolset
Public Sub New (toolsVersion As String, toolsPath As String, buildProperties As BuildPropertyGroup)

Parameters

toolsVersion
String

Name of the toolset

toolsPath
String

Path to this toolset's tasks and targets

buildProperties
BuildPropertyGroup

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

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to