Toolset.GenerateSubToolsetVersion Method
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 the sub toolset version to be used with this toolset.
Overloads
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. |
GenerateSubToolsetVersion()
- Source:
- Toolset.cs
Generates the sub-toolset version to be used with this toolset. Sub-toolset version is based on:
- If "VisualStudioVersion" is set as a property on the toolset itself (global or environment), use that.
- Otherwise, use the default sub-toolset version for this toolset.
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.
public:
System::String ^ GenerateSubToolsetVersion();
public string GenerateSubToolsetVersion ();
member this.GenerateSubToolsetVersion : unit -> string
Public Function GenerateSubToolsetVersion () As String
Returns
The sub toolset version to be used with this toolset.
Remarks
If "VisualStudioVersion" is set as a property on the toolset itself, then sub toolset version is set to "VisualStudioVersion".
Otherwise, sub toolset version is set to the DefaultSubToolsetVersion of the toolset.
Applies to
GenerateSubToolsetVersion(IDictionary<String,String>, Int32)
- Source:
- Toolset.cs
Generates the sub-toolset version to be used with this toolset. Sub-toolset version is based on:
- If the "VisualStudioVersion" global property exists in the set of properties passed to us, use it.
- Otherwise, if "VisualStudioVersion" is set as a property on the toolset itself (global or environment), use that.
- Otherwise, use Visual Studio version from solution file if it maps to an existing sub-toolset.
- Otherwise, use the default sub-toolset version for this toolset.
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.
public:
System::String ^ GenerateSubToolsetVersion(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ overrideGlobalProperties, int solutionVersion);
public string GenerateSubToolsetVersion (System.Collections.Generic.IDictionary<string,string> overrideGlobalProperties, int solutionVersion);
member this.GenerateSubToolsetVersion : System.Collections.Generic.IDictionary<string, string> * int -> string
Public Function GenerateSubToolsetVersion (overrideGlobalProperties As IDictionary(Of String, String), solutionVersion As Integer) As String
Parameters
- overrideGlobalProperties
- IDictionary<String,String>
Set of global properties to use to create the sub toolset version. May be null.
- solutionVersion
- Int32
The solution version to use to create the sub toolset version.
Returns
The sub toolset version.
Remarks
If the "VisualStudioVersion" global property exists in the set of global properties passed in, then sub toolset version is set to "VisualStudioVersion".
Otherwise, if "VisualStudioVersion" is set as a property on the toolset itself, then sub toolset version is set to "VisualStudioVersion".
Otherwise, if the Visual Studio version corresponding to the solution version (Visual Studio version = solution version - 1) passed in maps to an existing sub toolset, then sub toolset version is set to the Visual Studio version.
Otherwise, sub toolset version is set to the DefaultSubToolsetVersion of the toolset.