1
votes

How do you fix intermittent package restore fails in VSTS?

During my build I have a task to restore Nuget packages.

My build configuration does have multiple configurations for the same code.

Every so often, I get build failure where packages fails to restore, yet the the other configuration does succeed. If I do kick off the build again the build will succeed.

The error is:

...nuget-task-common\NuGet\3.3.0\NuGet.exe failed with return code: 1

enter image description here

1
are you using the hosted or a custom agent?baywet
@baywet no, I am using standard nuget restore.cpoDesign

1 Answers

1
votes

It took a little research to find out the issue.

Nuget had a bug related to exactly this, which has been resolved.

Resolution

I have changed the configuration to use v3.5 and the issue has been resolved.