Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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 ( _
diskRoots 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 registryRoot,
string targetPlatformIdentifier,
Version targetPlatformVersion
)
public:
static IDictionary<String^, String^>^ GetPlatformExtensionSDKLocations(
array<String^>^ diskRoots,
String^ registryRoot,
String^ targetPlatformIdentifier,
Version^ targetPlatformVersion
)
static member GetPlatformExtensionSDKLocations :
diskRoots:string[] *
registryRoot:string *
targetPlatformIdentifier:string *
targetPlatformVersion:Version -> IDictionary<string, string>
public static function GetPlatformExtensionSDKLocations(
diskRoots : String[],
registryRoot : String,
targetPlatformIdentifier : String,
targetPlatformVersion : Version
) : IDictionary<String, String>
Parameters
diskRoots
Type: array<System.String[]Array of disk locations to search for sdks
registryRoot
Type: System.StringRoot registry location to look for sdks
targetPlatformIdentifier
Type: System.StringTargeted platform to find SDKs for
targetPlatformVersion
Type: System.VersionTargeted 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.