79274436

Date: 2024-12-12 09:17:43
Score: 0.5
Natty:
Report link

Old question but still relevant. I am not sure as to what exactly leads to NuGet being unable to use the "Windows authentication broker", but at least for me that was the issue in the end.

Go to Tools > Options > Accounts and select anything but the "Windows authentication broker". Log out and back into your accounts via the new sign in option. And for good measure restart VS.

Go to Tools > Options > Accounts and select anything but the "Windows authentication broker"

To be frank: I don't understand why NuGet (within VS) doesn't use the Credentials provided via the %AppData%\NuGet\NuGet.config file. They work just fine when using dotnet restore or nuget restore from either PowerShell or cmd shell (even from VSs inbuilt PowerShell window). But it is what it is.

I also answered this question here: https://stackoverflow.com/a/79274415/6289706

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lukas Willin