コード例 #1
0
ファイル: NativeLibPathUtils.cs プロジェクト: yossidev/dnx
        public static IEnumerable <string> GetNativeSubfolderCandidates(IRuntimeEnvironment runtimeEnvironment)
        {
            if (runtimeEnvironment.OperatingSystem == RuntimeOperatingSystems.Windows)
            {
                return(runtimeEnvironment.GetAllRuntimeIdentifiers());
            }

            var runtimeId = runtimeEnvironment.GetRuntimeOsName();

            return(new[]
            {
                runtimeId + "-" + runtimeEnvironment.RuntimeArchitecture,
                runtimeId.Split('.')[0] + "-" + runtimeEnvironment.RuntimeArchitecture
            });
        }
コード例 #2
0
ファイル: NativeLibPathUtils.cs プロジェクト: leloulight/dnx
        public static IEnumerable<string> GetNativeSubfolderCandidates(IRuntimeEnvironment runtimeEnvironment)
        {
            if (runtimeEnvironment.OperatingSystem == RuntimeOperatingSystems.Windows)
            {
                return runtimeEnvironment.GetAllRuntimeIdentifiers();
            }

            var runtimeId = runtimeEnvironment.GetRuntimeOsName();

            return new[]
            {
                runtimeId + "-" + runtimeEnvironment.RuntimeArchitecture,
                runtimeId.Split('.')[0] + "-" + runtimeEnvironment.RuntimeArchitecture
            };
        }
コード例 #3
0
        public static IEnumerable <string> GetDefaultRestoreRuntimes(this IRuntimeEnvironment env)
        {
            if (string.Equals(env.OperatingSystem, RuntimeOperatingSystems.Windows, StringComparison.Ordinal))
            {
                // Restore the minimum version of Windows. If the user wants other runtimes, they need to opt-in
                yield return("win7-x86");

                yield return("win7-x64");
            }
            else
            {
                var os = env.GetRuntimeOsName();
                yield return(os + "-x86"); // We do support x86 on Linux/Darwin via Mono

                yield return(os + "-x64");
            }
        }