MacOs HighSierra Fallback (#8437)
walk around for https://github.com/dotnet/corefx/issues/26488
This commit is contained in:
parent
4dc001ca47
commit
839eccbcaf
1 changed files with 13 additions and 1 deletions
|
@ -38,7 +38,7 @@ namespace Microsoft.DotNet.Tools.Install.Tool
|
|||
argsToPassToRestore.AddRange(new List<string>
|
||||
{
|
||||
"--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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue