Merge pull request #14789 from tamasvajk/autobuild/arm-nuget-restore

C#: Do not call nuget.exe on Apple Silicon
This commit is contained in:
Tamás Vajk
2023-11-14 17:13:42 +01:00
committed by GitHub

View File

@@ -82,7 +82,12 @@ namespace Semmle.Autobuild.Shared
Argument("/t:restore").
QuoteArgument(projectOrSolution.FullPath);
if (nugetDownloaded)
if (builder.Actions.IsRunningOnAppleSilicon())
{
// On Apple Silicon, only try package restore with `dotnet msbuild /t:restore`
ret &= BuildScript.Try(msbuildRestoreCommand.Script);
}
else if (nugetDownloaded)
{
ret &= BuildScript.Try(nugetRestore | msbuildRestoreCommand.Script);
}