private static GetSDKFolderAndVersion ( string &sdkFolder, string &sdkVersion ) : void | ||
sdkFolder | string | |
sdkVersion | string | |
return | void |
public static string[] GetReferences() { string text; string version; UWPReferences.GetSDKFolderAndVersion(out text, out version); HashSet <string> hashSet = new HashSet <string>(StringComparer.InvariantCultureIgnoreCase); string item = Path.Combine(text, "UnionMetadata\\Facade\\Windows.winmd"); hashSet.Add(item); string[] platform = UWPReferences.GetPlatform(text, version); for (int i = 0; i < platform.Length; i++) { string item2 = platform[i]; hashSet.Add(item2); } UWPReferences.UWPExtension[] extensions = UWPReferences.GetExtensions(text, version); for (int j = 0; j < extensions.Length; j++) { UWPReferences.UWPExtension uWPExtension = extensions[j]; string[] references = uWPExtension.References; for (int k = 0; k < references.Length; k++) { string item3 = references[k]; hashSet.Add(item3); } } return(hashSet.ToArray <string>()); }
public static IEnumerable <UWPExtensionSDK> GetExtensionSDKs() { string sdkFolder; string sdkVersion; UWPReferences.GetSDKFolderAndVersion(out sdkFolder, out sdkVersion); return(UWPReferences.GetExtensionSDKs(sdkFolder, sdkVersion)); }