Toolset Class
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.
Aggregation of a toolset version (eg. "2.0"), tools path, and optional set of associated properties. Toolset is immutable.
public ref class Toolset
public class Toolset
type Toolset = class
Public Class Toolset
- Inheritance
-
Toolset
Remarks
UNDONE: Review immutability. If this is not immutable, add a mechanism to notify the project collection/s owning it to increment their toolsetVersion.
Constructors
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, IDictionary<String,String>, ProjectCollection, 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 |
Properties
DefaultSubToolsetVersion |
Returns the default sub-toolset version for this sub-toolset. Heuristic used is:
Will return null if there is no sub-toolset available (and Dev10 is not installed). |
Properties |
Properties associated with the toolset |
SubToolsets |
The set of sub-toolsets associated with this toolset. |
ToolsPath |
Path to this toolset's tasks and targets. Corresponds to $(MSBuildToolsPath) in a project or targets file. |
ToolsVersion |
Name of this toolset |
Methods
GenerateSubToolsetVersion() |
Generates the sub-toolset version to be used with this toolset. Sub-toolset version is based on:
The sub-toolset version returned may be null; if so, that means that no sub-toolset should be used, just the base toolset on its own. The sub-toolset version returned may not map to an existing sub-toolset. |
GenerateSubToolsetVersion(IDictionary<String,String>, Int32) |
Generates the sub-toolset version to be used with this toolset. Sub-toolset version is based on:
The sub-toolset version returned may be null; if so, that means that no sub-toolset should be used, just the base toolset on its own. The sub-toolset version returned may not map to an existing sub-toolset. The global properties dictionary may be null. |
GetProperty(String, String) |
Given a property name and a sub-toolset version, searches for that property first in the sub-toolset, then falls back to the base toolset if necessary, and returns the property if it was found. |