From Visual Studio I have an architecture mismatch because:
my machine: arm64
my .net sdk: arm64
visual studio: arm64
Azure Artifacts Credential Provider: x64
So Visual Studio tries to load the x64 plugin causing a NuGet restore loop / bad state.
Everything works in the CLI because it uses MSAL and VS uses CredentialProviderPlugin.
Reference commit: 0b972b3 - "Use the detected runtime id os for win-arm64 fall back to x64" could be the reason...