다음을 통해 공유


ToolLocationHelper.GetPlatformSDKLocation Method

Definition

Given a target platform identifier and a target platform version, searches the default SDK locations for the platform SDK for that target platform.

Overloads

GetPlatformSDKLocation(String, Version, String[], String)

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

GetPlatformSDKLocation(String, String, String, String)

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

GetPlatformSDKLocation(String, String)

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

GetPlatformSDKLocation(String, Version)

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

GetPlatformSDKLocation(String, Version, String[], String)

Source:
ToolLocationHelper.cs

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

public:
 static System::String ^ GetPlatformSDKLocation(System::String ^ targetPlatformIdentifier, Version ^ targetPlatformVersion, cli::array <System::String ^> ^ diskRoots, System::String ^ registryRoot);
public static string GetPlatformSDKLocation (string targetPlatformIdentifier, Version targetPlatformVersion, string[] diskRoots, string registryRoot);
static member GetPlatformSDKLocation : string * Version * string[] * string -> string
Public Shared Function GetPlatformSDKLocation (targetPlatformIdentifier As String, targetPlatformVersion As Version, diskRoots As String(), registryRoot As String) As String

Parameters

targetPlatformIdentifier
String

Targeted platform to find SDKs for

targetPlatformVersion
Version

Targeted platform version to find SDKs for

diskRoots
String[]

List of disk roots to search for sdks within

registryRoot
String

Registry root to look for sdks within

Returns

Location of the SDK if it is found, empty string if it could not be found

Applies to

GetPlatformSDKLocation(String, String, String, String)

Source:
ToolLocationHelper.cs

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

public:
 static System::String ^ GetPlatformSDKLocation(System::String ^ targetPlatformIdentifier, System::String ^ targetPlatformVersion, System::String ^ diskRoots, System::String ^ registryRoot);
public static string GetPlatformSDKLocation (string targetPlatformIdentifier, string targetPlatformVersion, string diskRoots, string registryRoot);
static member GetPlatformSDKLocation : string * string * string * string -> string
Public Shared Function GetPlatformSDKLocation (targetPlatformIdentifier As String, targetPlatformVersion As String, diskRoots As String, registryRoot As String) As String

Parameters

targetPlatformIdentifier
String

Targeted platform to find SDKs for

targetPlatformVersion
String

Targeted platform version to find SDKs for

diskRoots
String

List of disk roots to search for sdks within

registryRoot
String

Registry root to look for sdks within

Returns

Location of the platform SDK if it is found, empty string if it could not be found

Applies to

GetPlatformSDKLocation(String, String)

Source:
ToolLocationHelper.cs

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

public:
 static System::String ^ GetPlatformSDKLocation(System::String ^ targetPlatformIdentifier, System::String ^ targetPlatformVersion);
public static string GetPlatformSDKLocation (string targetPlatformIdentifier, string targetPlatformVersion);
static member GetPlatformSDKLocation : string * string -> string
Public Shared Function GetPlatformSDKLocation (targetPlatformIdentifier As String, targetPlatformVersion As String) As String

Parameters

targetPlatformIdentifier
String

Identifier for the platform

targetPlatformVersion
String

Version of the platform

Returns

A full path to the sdk root if the sdk exists in the targeted platform or an empty string if it does not exist.

Applies to

GetPlatformSDKLocation(String, Version)

Source:
ToolLocationHelper.cs

Given a target platform identifier and a target platform version search the default sdk locations for the platform sdk for the target platform.

public:
 static System::String ^ GetPlatformSDKLocation(System::String ^ targetPlatformIdentifier, Version ^ targetPlatformVersion);
public static string GetPlatformSDKLocation (string targetPlatformIdentifier, Version targetPlatformVersion);
static member GetPlatformSDKLocation : string * Version -> string
Public Shared Function GetPlatformSDKLocation (targetPlatformIdentifier As String, targetPlatformVersion As Version) As String

Parameters

targetPlatformIdentifier
String

Targeted platform to find SDKs for

targetPlatformVersion
Version

Targeted platform version to find SDKs for

Returns

Location of the SDK if it is found, empty string if it could not be found

Applies to