다음을 통해 공유


Toolset.DefaultSubToolsetVersion Property

Definition

Returns the default sub-toolset version for this sub-toolset. Heuristic used is:

  1. 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.
  2. 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.

Applies to