Exemplo n.º 1
0
        public static IEnumerable <UWPExtensionSDK> GetExtensionSDKs(UWPSDK sdk)
        {
            var windowsKit10Directory = GetWindowsKit10();

            if (string.IsNullOrEmpty(windowsKit10Directory))
            {
                return(new UWPExtensionSDK[0]);
            }

            return(GetExtensionSDKs(windowsKit10Directory, SdkVersionToString(sdk.Version)));
        }
Exemplo n.º 2
0
        public static string[] GetReferences(UWPSDK sdk)
        {
            var folder = GetWindowsKit10();

            if (string.IsNullOrEmpty(folder))
            {
                return(new string[0]);
            }

            var version    = SdkVersionToString(sdk.Version);
            var references = new HashSet <string>(StringComparer.InvariantCultureIgnoreCase);

            var windowsWinMd = CombinePaths(folder, "UnionMetadata", version, "Facade", "Windows.winmd");

            if (!File.Exists(windowsWinMd))
            {
                windowsWinMd = CombinePaths(folder, "UnionMetadata", "Facade", "Windows.winmd");
            }

            references.Add(windowsWinMd);

            foreach (var reference in GetPlatform(folder, version))
            {
                references.Add(reference);
            }

            foreach (var extension in GetExtensions(folder, version))
            {
                foreach (var reference in extension.References)
                {
                    references.Add(reference);
                }
            }

            return(references.ToArray());
        }