diff --git a/src/dotnet/commands/dotnet-install/dotnet-install-tool/ProjectRestorer.cs b/src/dotnet/commands/dotnet-install/dotnet-install-tool/ProjectRestorer.cs index 01969bd83..1419e0e38 100644 --- a/src/dotnet/commands/dotnet-install/dotnet-install-tool/ProjectRestorer.cs +++ b/src/dotnet/commands/dotnet-install/dotnet-install-tool/ProjectRestorer.cs @@ -38,7 +38,7 @@ namespace Microsoft.DotNet.Tools.Install.Tool argsToPassToRestore.AddRange(new List { "--runtime", - RuntimeEnvironment.GetRuntimeIdentifier(), + GetRuntimeIdentifierWithMacOsHighSierraFallback(), $"/p:BaseIntermediateOutputPath={assetJsonOutput.ToQuotedString()}" }); @@ -56,5 +56,17 @@ namespace Microsoft.DotNet.Tools.Install.Tool result.StartInfo.WorkingDirectory, result.StartInfo.Arguments, result.StdErr, result.StdOut)); } } + + // walk around for https://github.com/dotnet/corefx/issues/26488 + // fallback osx.10.13 to osx + private static string GetRuntimeIdentifierWithMacOsHighSierraFallback() + { + if (RuntimeEnvironment.GetRuntimeIdentifier() == "osx.10.13-x64") + { + return "osx-x64"; + } + + return RuntimeEnvironment.GetRuntimeIdentifier(); + } } }