0

I had an issue with TFS on VS2012, Windows 7 that most solutions online did not resolve. There was a workspace with many changes that needed to be checked in which could not be because the user VS defaulted to was always the domain account (windows logged in user account). The workspace, however, was tied to the same users's admin account(how this happened, still not sure).

Clearing the credentials set in Credential Manager and restarting VS did not work, they were still always cached.

I'm supplying the only way I found that worked as an answer, but if there is a simpler alternative that may also cover not knowing the login or include a way to not have to open VS as a different user I would like to know.

There are many questions like this, but those I found did not have solutions which worked for me, such as:

Question 1

Question 2

Question 3

I'm not sure if this is just due to my OS/VS version, if anyone knows if this is also a factor please also add that as a comment or answer.

Community
  • 1
  • 1
JWiley
  • 3,129
  • 8
  • 41
  • 66

2 Answers2

0

I had to shift+right click Visual Studios and select "Run as different user", and enter the credentials of the admin account that the workspace was tied to. I could then check in all of the pending changes, and do anything else needed as that role, then remove the workspace and continue using the appropriate one.

enter image description here

This took way too much time to figure out, hoping this will help others with the same issue.

JWiley
  • 3,129
  • 8
  • 41
  • 66
0

You should be able to use the "tf workspace" command from the visual studio command prompt to change the workspace user.

http://msdn.microsoft.com/en-us/library/54dkh0y3(v=vs.100).aspx