Use --disable-parallel during xplat restores.

Works around NuGet parallel restore timeouts becoming build failures when the machine has a slow connection, for example in our Docker Fedora containers.
This commit is contained in:
Davis Goodin 2016-10-27 04:34:27 +00:00
parent 1dc0c57885
commit 59a6c72be7
5 changed files with 21 additions and 4 deletions

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Cli.Build
protected override string Args
{
get { return $"{GetVerbosity()} {GetFallbackSource()} {GetPackages()}"; }
get { return $"{GetVerbosity()} {GetFallbackSource()} {GetPackages()} {GetDisableParallel()}"; }
}
public string FallbackSource { get; set; }
@ -50,5 +50,10 @@ namespace Microsoft.DotNet.Cli.Build
return null;
}
private string GetDisableParallel()
{
return "--disable-parallel";
}
}
}