Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Nuget restore task taking an excessive length of time

$
0
0

Hi

We have DevOps pipelines being run on self-hosted build servers, building a large solution (~50 projects, currently a mix of full framework and NetStandard) with a lot of nugets being referenced. Unfortunately the codebase is far too large to be pulled onto the standard azure build servers.

We use the nuget restore step (v4.9.1) against the standard nuget feed & a couple of secured customer devops feeds but the restore time has gone from ~2 mins to more than 10 minute. At the outset of this the nuget restore was failing completely, allegedly due to authentication timeout. We have managed to get it working again, but taking these much longer times using the following settings:



  1. steps:
  2. - task:NuGetCommand@2
  3. displayName:'NuGet restore'
  4. inputs:
  5. restoreSolution: src/DesktopComponents.sln
  6. feedsToUse: config
  7. nugetConfigPath: nuget.config
  8. disableParallelProcessing:true
  9. restoreDirectory:.packages


Any assistance that anyone could offer would be much appreciated. If there are any logs/settings that would be useful please let me know

Thanks in advance

Mark Middlemist


Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>