VS2019 (+2022) keeps asking for Azure Devops Credentials on build
We run our own nuget feed via Azure, and despite the user that’s logged into VS is authenticated users are constantly asked to provide their credentials again when package restore is happening. A quick fix below – Mostly so I don’t forget or can forward this to others later.
- Verify no “out of date” credentials or old credentials exist within File -> Account Settings. Remove or update as appropraite.
- Select “Account options” and under “Sign-In options”, select the “System Web Browser” as the authentication.
There seems to be a bug in VS (Going back to mid 2019) where the embedded browser does not retain the credentials.
Thanks for the article. Switching to “System web browser” fixed it for me.