ToolLocationHelper.GetPlatformsForSDK Method

Definition

Overloads

GetPlatformsForSDK(String, Version)

Given an SDK identifier and an SDK version, return a list of installed platforms.

GetPlatformsForSDK(String, Version, String[], String)

Given an SDK identifier and an SDK version, return a list of installed platforms.

GetPlatformsForSDK(String, Version)

Source:
ToolLocationHelper.cs

Given an SDK identifier and an SDK version, return a list of installed platforms.

C#
public static System.Collections.Generic.IEnumerable<string> GetPlatformsForSDK(string sdkIdentifier, Version sdkVersion);

Parameters

sdkIdentifier
String

SDK for which to find the installed platforms

sdkVersion
Version

SDK version for which to find the installed platforms

Returns

A list of keys for the installed platforms for the given SDK

Applies to

MSBuild 17 ve diğer sürümler
Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

GetPlatformsForSDK(String, Version, String[], String)

Source:
ToolLocationHelper.cs

Given an SDK identifier and an SDK version, return a list of installed platforms.

C#
public static System.Collections.Generic.IEnumerable<string> GetPlatformsForSDK(string sdkIdentifier, Version sdkVersion, string[] diskRoots, string registryRoot);

Parameters

sdkIdentifier
String

SDK for which to find the installed platforms

sdkVersion
Version

SDK version for which to find the installed platforms

diskRoots
String[]

List of disk roots to search for sdks within

registryRoot
String

Registry root to look for sdks within

Returns

A list of keys for the installed platforms for the given SDK

Applies to

MSBuild 17 ve diğer sürümler
Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17