c# – Visual studio 2022 Re-enter your credentials: Error no matching accounts found in MSAL cache

Trying to sign in to Visual Studio 2022 community version using my Microsoft account. However got below error:

Visual studio encountered problems while attempting to access some directories.
Error No matching accounts found in any MSAL cache

What I tried:

  1. Delete all files in C:\Users{username}\AppData\Local.IdentityService
  2. Using system browser in Tools>Options>Environment>Accounts

Would appreciate any help on how to resolve this. Thanks!

Read more here: Source link