6 instantiations of TargetPlatformSDK
Microsoft.Build.Framework (6)
Utilities\ToolLocationHelper_SDKDiscovery.cs (6)
95
extensionSdk = new
TargetPlatformSDK
(string.Empty, new Version(0, 0), null);
228
platformSDKKey = new
TargetPlatformSDK
(uapRegistryName, directoryUnderRoot.Key, null);
232
platformSDKKey = new
TargetPlatformSDK
(rootPathWithIdentifier.Name, directoryUnderRoot.Key, null);
248
targetPlatformSDK = new
TargetPlatformSDK
(platformSDKKey.TargetPlatformIdentifier, platformSDKKey.TargetPlatformVersion, platformSDKManifestExists ? platformSDKDirectory : null);
333
TargetPlatformSDK platformSDKKey = new
TargetPlatformSDK
(platformIdentifier, registryVersions.Key, null);
369
targetPlatformSDK = new
TargetPlatformSDK
(platformSDKKey.TargetPlatformIdentifier, platformSDKKey.TargetPlatformVersion, platformSDKmanifestExists ? platformSDKDirectory : null);
60 references to TargetPlatformSDK
Microsoft.Build.Framework (59)
Utilities\TargetPlatformSDK.cs (3)
17
public class TargetPlatformSDK : IEquatable<
TargetPlatformSDK
>
154
if (!(obj is
TargetPlatformSDK
moniker))
170
public bool Equals(
TargetPlatformSDK
other)
Utilities\ToolLocationHelper_ExtensionSDKs.cs (11)
56
IEnumerable<
TargetPlatformSDK
> targetPlatformMonikers = GetTargetPlatformMonikers(diskRoots, extensionDiskRoots, registryRoot, targetPlatformIdentifier, targetPlatformVersion);
57
foreach (
TargetPlatformSDK
moniker in targetPlatformMonikers)
103
IEnumerable<
TargetPlatformSDK
> targetPlatformMonikers = GetTargetPlatformMonikers(diskRoots, multiPlatformDiskRoots, registryRoot, targetPlatformIdentifier, targetPlatformVersion);
105
foreach (
TargetPlatformSDK
moniker in targetPlatformMonikers)
119
private static IEnumerable<
TargetPlatformSDK
> GetTargetPlatformMonikers(string[] diskRoots, string[] extensionDiskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion)
127
IEnumerable<
TargetPlatformSDK
> targetPlatformSDKs = RetrieveTargetPlatformList(diskRoots, extensionDiskRoots, registryRoot);
181
IEnumerable<
TargetPlatformSDK
> targetPlatforms = RetrieveTargetPlatformList(diskRoots, extensionDiskRoots, registryRoot);
182
var
targetPlatformMoniker = targetPlatforms.Where(
340
TargetPlatformSDK
matchingSdk = GetMatchingPlatformSDK(targetSdkIdentifier, targetSdkVersion, diskRoots, extensionDiskRoots, registryRoot);
380
private static string GetPlatformVersion(
TargetPlatformSDK
targetSdk, string targetPlatformIdentifier, string targetPlatformVersion)
382
string platformKey =
TargetPlatformSDK
.GetSdkKey(targetPlatformIdentifier, targetPlatformVersion);
Utilities\ToolLocationHelper_PlatformSDKs.cs (18)
30
public static IList<
TargetPlatformSDK
> GetTargetPlatformSdks()
39
public static IList<
TargetPlatformSDK
> GetTargetPlatformSdks(string[] diskRoots, string registryRoot)
41
IEnumerable<
TargetPlatformSDK
> targetPlatforms = RetrieveTargetPlatformList(diskRoots, null, registryRoot);
52
public static IList<
TargetPlatformSDK
> FilterTargetPlatformSdks(IList<
TargetPlatformSDK
> targetPlatformSdkList, Version osVersion, Version vsVersion)
54
var filteredTargetPlatformSdkList = new List<
TargetPlatformSDK
>();
56
foreach (
TargetPlatformSDK
targetPlatformSdk in targetPlatformSdkList)
242
TargetPlatformSDK
matchingSdk = GetMatchingPlatformSDK(targetPlatformIdentifier, targetPlatformVersion, diskRoots, null, registryRoot);
243
string platformKey =
TargetPlatformSDK
.GetSdkKey(targetPlatformIdentifier, targetPlatformVersion);
306
private static bool TryGetPlatformManifest(
TargetPlatformSDK
matchingSdk, string platformKey, out PlatformManifest manifest)
364
var
targetPlatform = GetMatchingPlatformSDK(targetPlatformIdentifier, targetPlatformVersion, diskRoots, null, registryRoot);
417
TargetPlatformSDK
targetPlatform = GetMatchingPlatformSDK(targetPlatformIdentifier, targetPlatformVersion, diskRoots, null, registryRoot);
443
IEnumerable<
TargetPlatformSDK
> targetPlatformSDKs = RetrieveTargetPlatformList(diskRoots, null, registryRoot);
446
foreach (
TargetPlatformSDK
sdk in targetPlatformSDKs)
540
private static
TargetPlatformSDK
GetMatchingPlatformSDK(string targetPlatformIdentifier, string targetPlatformVersion, string diskRoots, string multiPlatformDiskRoots, string registryRoot)
568
private static
TargetPlatformSDK
GetMatchingPlatformSDK(string targetPlatformIdentifier, Version targetPlatformVersion, string[] diskRoots, string[] multiPlatformDiskRoots, string registryRoot)
573
IEnumerable<
TargetPlatformSDK
> targetPlatforms = RetrieveTargetPlatformList(diskRoots, multiPlatformDiskRoots, registryRoot);
575
TargetPlatformSDK
matchingSdk = targetPlatforms
Utilities\ToolLocationHelper_SDKDiscovery.cs (25)
24
private static Dictionary<string, IEnumerable<
TargetPlatformSDK
>> s_cachedTargetPlatforms;
29
private static Dictionary<string,
TargetPlatformSDK
> s_cachedExtensionSdks;
56
private static IEnumerable<
TargetPlatformSDK
> RetrieveTargetPlatformList(string[] diskRoots, string[] extensionDiskRoots, string registrySearchLocation)
72
s_cachedTargetPlatforms ??= new Dictionary<string, IEnumerable<
TargetPlatformSDK
>>(StringComparer.OrdinalIgnoreCase);
74
s_cachedExtensionSdks ??= new Dictionary<string,
TargetPlatformSDK
>(StringComparer.OrdinalIgnoreCase);
76
if (!s_cachedTargetPlatforms.TryGetValue(cachedTargetPlatformsKey, out IEnumerable<
TargetPlatformSDK
> collection))
78
var monikers = new Dictionary<
TargetPlatformSDK
,
TargetPlatformSDK
>();
92
if (!s_cachedExtensionSdks.TryGetValue(cachedExtensionSdksKey, out
TargetPlatformSDK
extensionSdk))
110
private static void GatherExtensionSDKListFromDirectory(IEnumerable<string> diskRoots,
TargetPlatformSDK
extensionSdk)
137
internal static void GatherExtensionSDKs(DirectoryInfo extensionSdksDirectory,
TargetPlatformSDK
targetPlatformSDK)
159
string SDKKey =
TargetPlatformSDK
.GetSdkKey(sdkNameFolders.Name, sdkVersionDirectory.Name);
191
internal static void GatherSDKListFromDirectory(List<string> diskroots, Dictionary<
TargetPlatformSDK
,
TargetPlatformSDK
> platformSDKs)
224
TargetPlatformSDK
platformSDKKey;
235
TargetPlatformSDK
targetPlatformSDK = null;
286
internal static void GatherSDKsFromRegistryImpl(Dictionary<
TargetPlatformSDK
,
TargetPlatformSDK
> platformMonikers, string registryKeyRoot, RegistryView registryView, RegistryHive registryHive, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, OpenBaseKey openBaseKey, FileExists fileExists)
333
TargetPlatformSDK
platformSDKKey = new TargetPlatformSDK(platformIdentifier, registryVersions.Key, null);
334
TargetPlatformSDK
targetPlatformSDK = null;
429
string sdkKey =
TargetPlatformSDK
.GetSdkKey(sdkName, sdkVersion);
478
private static void GatherSDKListFromRegistry(string registryRoot, Dictionary<
TargetPlatformSDK
,
TargetPlatformSDK
> platformMonikers)
638
private static void GatherPlatformsForSdk(
TargetPlatformSDK
sdk)
665
string sdkKey =
TargetPlatformSDK
.GetSdkKey(platformIdentifier.Name, platformVersion.Name);
Utilities\ToolLocationHelper_SDKFolders.cs (2)
187
TargetPlatformSDK
matchingSdk = GetMatchingPlatformSDK(targetPlatformIdentifier, targetPlatformVersion, diskRoot, null, null);
188
string platformKey =
TargetPlatformSDK
.GetSdkKey(targetPlatformIdentifier, targetPlatformVersion);
Microsoft.Build.Utilities.Core (1)
AssemblyInfo.cs (1)
28
[assembly: TypeForwardedTo(typeof(Microsoft.Build.Utilities.
TargetPlatformSDK
))]