ToolLocationHelper.GetPlatformExtensionSDKLocations Method (array<String[], array<String[], String, String, Version)

Gets a list of SDK's installed on the machine for a given target platform.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

Syntax

'Declaration
Public Shared Function GetPlatformExtensionSDKLocations ( _
    diskRoots As String(), _
    extensionDiskRoots As String(), _
    registryRoot As String, _
    targetPlatformIdentifier As String, _
    targetPlatformVersion As Version _
) As IDictionary(Of String, String)
public static IDictionary<string, string> GetPlatformExtensionSDKLocations(
    string[] diskRoots,
    string[] extensionDiskRoots,
    string registryRoot,
    string targetPlatformIdentifier,
    Version targetPlatformVersion
)
public:
static IDictionary<String^, String^>^ GetPlatformExtensionSDKLocations(
    array<String^>^ diskRoots, 
    array<String^>^ extensionDiskRoots, 
    String^ registryRoot, 
    String^ targetPlatformIdentifier, 
    Version^ targetPlatformVersion
)
static member GetPlatformExtensionSDKLocations : 
        diskRoots:string[] * 
        extensionDiskRoots:string[] * 
        registryRoot:string * 
        targetPlatformIdentifier:string * 
        targetPlatformVersion:Version -> IDictionary<string, string> 
public static function GetPlatformExtensionSDKLocations(
    diskRoots : String[], 
    extensionDiskRoots : String[], 
    registryRoot : String, 
    targetPlatformIdentifier : String, 
    targetPlatformVersion : Version
) : IDictionary<String, String>

Parameters

  • diskRoots
    Type: array<System.String[]

    The disk locations to search for SDKs.

  • extensionDiskRoots
    Type: array<System.String[]

    New-style extension SDK roots.

  • registryRoot
    Type: System.String

    The root registry location to look for SDKs.

  • targetPlatformIdentifier
    Type: System.String

    Targeted platform for which to find SDK.

  • targetPlatformVersion
    Type: System.Version

    Targeted platform version for which to find SDKs.

Return Value

Type: IDictionary<String, String>
A dictionary of installed SDKS and their location in the format: K:SDKName V:SDK installation.

.NET Framework Security

See Also

Reference

ToolLocationHelper Class

GetPlatformExtensionSDKLocations Overload

Microsoft.Build.Utilities Namespace