VSTS intermittently nuget package restore fails

577 views Asked by At

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

There are 1 answers

2
cpoDesign On BEST ANSWER

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.