Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NuGet VS17 sporadically fails connecting to VSO/VSTS feeds - VS Bug 365798 #4365
Dup of VS: Bug 365798
The issue is sometimes resolved by random restart/clean cache.
Playing around with the entering/not entering credentials when prompted I managed to get it
Steps to a possible repro:
And we're in the above mentioned scenario.
Everything seems fine, if the user does "Manage NuGet Packages" before doing a restore though.
The problem with this repro is that it's not a normal user scenario to log in/log out of VS frequently. While this is an issue it's likely to be the root cause of the reports
And here's a workaround that worked for me in a couple of test cases.
Note: If you have a Net.Core project make sure to turn off Auto Restore before Step 4
That should fix it.