ToolLocationHelper.GetTargetPlatformSdks Method

Definition

Gets a list of target platform SDKs on the machine.

Overloads

GetTargetPlatformSdks()

Get a list target platform sdks on the machine.

GetTargetPlatformSdks(String[], String)

Get a list target platform sdks on the machine.

GetTargetPlatformSdks()

Source:
ToolLocationHelper.cs

Get a list target platform sdks on the machine.

C#
public static System.Collections.Generic.IList<Microsoft.Build.Utilities.TargetPlatformSDK> GetTargetPlatformSdks();

Returns

List of Target Platform SDKs, Item1: TargetPlatformName Item2: Version of SDK Item3: Path to sdk root

Applies to

MSBuild 17 and other versions
Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

GetTargetPlatformSdks(String[], String)

Source:
ToolLocationHelper.cs

Get a list target platform sdks on the machine.

C#
public static System.Collections.Generic.IList<Microsoft.Build.Utilities.TargetPlatformSDK> GetTargetPlatformSdks(string[] diskRoots, string registryRoot);

Parameters

diskRoots
String[]

List of disk locations to search for platform sdks

registryRoot
String

Registry root location to look for platform sdks

Returns

List of Target Platform SDKs

Applies to

MSBuild 17 and other versions
Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17