Provide a way to change the DefaultMaxDegreeOfParallelism value programmatically #3539
Labels
Platform:Mono
NuGet.exe on mono scenarios
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Status:Excluded from icebox cleanup
Status:Inactive
Icebox issues not updated for a specific long time
Triage:Investigate
Milestone
Can we provide a way to change the DefaultMaxDegreeOfParallelism used in various places in NuGet?
Having a large default value of 16 causes problems with restore in Xamarin Studio on Mono.
In the InstallCommand parallel processing is disabled on Mono:
https://github.com/NuGet/NuGet.Client/blob/250b20d83f57c687665f8682d80ef76efaaf5a00/src/NuGet.Clients/NuGet.CommandLine/Commands/InstallCommand.cs#L59
In other places this does not seem to be not possible since the DefaultMaxDegreeOfParallelism value is used directly.
To get around this problem in Mono I ended up changing the DefaultMaxDegreeOfParallelism constant to 1 and built NuGet from source. However it would be better if this could be modified or parallel processing disabled programmatically whilst this problem exists with Mono.
The text was updated successfully, but these errors were encountered: