Toolset Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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