Freigeben über


Toolset.GenerateSubToolsetVersion Method (IDictionary<String, String>, Int32)

Creates the sub toolset version to be used with this toolset.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Function GenerateSubToolsetVersion ( _
    overrideGlobalProperties As IDictionary(Of String, String), _
    solutionVersion As Integer _
) As String
public string GenerateSubToolsetVersion(
    IDictionary<string, string> overrideGlobalProperties,
    int solutionVersion
)
public:
String^ GenerateSubToolsetVersion(
    IDictionary<String^, String^>^ overrideGlobalProperties, 
    int solutionVersion
)
member GenerateSubToolsetVersion : 
        overrideGlobalProperties:IDictionary<string, string> * 
        solutionVersion:int -> string
public function GenerateSubToolsetVersion(
    overrideGlobalProperties : IDictionary<String, String>, 
    solutionVersion : int
) : String

Parameters

  • overrideGlobalProperties
    Type: IDictionary<String, String>

    Set of global properties to use to create the sub toolset version. May be null.

  • solutionVersion
    Type: System.Int32

    The solution version to use to create the sub toolset version.

Return Value

Type: System.String
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.

.NET Framework Security

See Also

Reference

Toolset Class

GenerateSubToolsetVersion Overload

Microsoft.Build.Evaluation Namespace