Thursday, 7 May 2015

Switching user accounts in Visual Studio

Occasionally I need to switch between Microsoft Accounts when signing into Visual Studio. To do this cleanly, it is necessary to reset the user data associated with visual studio.


  1. Exit Visual Studio
  2. Start the Developer Command Prompt
  3. Type  devenv /resetuserdata
  4. Start Visual Studio
  5. You will be prompted to sign into Visual Studio
EDIT: So this didn't work. In the end I needed to sign in as the original account, then sign out and sign back in again as the new account. It appears this was because Visual Studio needed to verify the original account first.

Welcome

My name is Dave and I'm an IT Consultant. Mostly I'm a developer focusing on the Microsoft stack and also I have a lot of experience working with SQL Server both from an administration and development perspective.

I've decided to publish various experiences, issues, findings, solutions and code snippets here as a way of preserving things I've found and making sure I can articulate it. After all, if I am unable to explain the topic publicly then I probably haven't understood it!