Toolset.DefaultSubToolsetVersion Property
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.
Returns the default sub-toolset version for this sub-toolset. Heuristic used is:
- If Visual Studio 2010 is installed and our ToolsVersion is "4.0", use the base toolset, and return a sub-toolset version of "10.0", to be set as a publicly visible property so that e.g. targets can consume it. This is to handle the fact that Visual Studio 2010 did not have any concept of sub-toolsets.
- Otherwise, use the highest-versioned sub-toolset found. Sub-toolsets with numbered versions will be ordered numerically; any additional sub-toolsets will be prepended to the beginning of the list in the order found. We use the highest-versioned sub-toolset because, in the absence of any other information, we assume that higher-versioned tools will be more likely to be able to generate something more correct.
Will return null if there is no sub-toolset available (and Dev10 is not installed).
public:
property System::String ^ DefaultSubToolsetVersion { System::String ^ get(); };
public string DefaultSubToolsetVersion { get; }
member this.DefaultSubToolsetVersion : string
Public ReadOnly Property DefaultSubToolsetVersion As String
Property Value
The default sub toolset version.
Remarks
If Visual Studio 2010 is installed, use the base toolset and return a sub toolset version of "10.0".
Otherwise, use the highest-versioned sub toolset found. Sub toolsets with numbered versions are ordered numerically; any additional sub toolsets are prepended to the beginning of the list in the order found. Returns null if there is no sub toolset available and Visual Studio 2010 is not installed.