Get a list of SDK's installed on the machine for a given target platform
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.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)
Syntax
'Declaration
Public Shared Function GetPlatformExtensionSDKLocations ( _
    targetPlatformIdentifier As String, _
    targetPlatformVersion As Version _
) As IDictionary(Of String, String)
public static IDictionary<string, string> GetPlatformExtensionSDKLocations(
    string targetPlatformIdentifier,
    Version targetPlatformVersion
)
public:
static IDictionary<String^, String^>^ GetPlatformExtensionSDKLocations(
    String^ targetPlatformIdentifier, 
    Version^ targetPlatformVersion
)
static member GetPlatformExtensionSDKLocations : 
        targetPlatformIdentifier:string * 
        targetPlatformVersion:Version -> IDictionary<string, string> 
public static function GetPlatformExtensionSDKLocations(
    targetPlatformIdentifier : String, 
    targetPlatformVersion : Version
) : IDictionary<String, String>
Parameters
- targetPlatformIdentifier 
 Type: System.String- Targeted platform to find SDKs for 
- targetPlatformVersion 
 Type: System.Version- Targeted platform version to find SDKs for 
Return Value
Type: IDictionary<String, String>
IDictionary of installed SDKS and their location. K:SDKName V:SDK installation location
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.