Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio alerts workspace already exists

I am having an issue with one of the users of a TFS server I manage. We recently went through a user ID change and as such this messed up some of our workspaces. I am trying to get a new local workspace made on her machine and it keeps saying that the locally mapped folder is already used for her old workspace.

We have deleted all of the TFS and VS cache folders, did userdatareset, and using the tf.exe workspaces command it does not list this offending workspace that I am trying to get rid of. Is there other approaches I can use to get rid of this workspace.

like image 507
Justin Avatar asked Jan 17 '17 18:01

Justin


1 Answers

If you want to use the tf workspace command to delete other's old workspace. Make sure you have own manage other users workspace permission. Otherwise, you need to get your TFS administrator to delete the workspace if you have no access to the account. Just using below command.

tf workspace /delete "WORKSPACENAME;PREVIOUSUSERACCOUNT"

You could also use Team Foundation Sidekicks, for TFS2015, it's version 6.0

How to use the tool:

  • After download and install it, you need to connect to TFS server with your current authentication.
  • Open tools- select workspace sidekick

enter image description here

  • In the filters, select the owner name, computer name, access date

enter image description here

  • Finally, you should be able to delete the abandoned workspace.

Note: TF Sidekicks uses the same commands so would require the same permission. It is a TFS admin productivity tool.

More details please refer the similar question: Delete Old Workspaces on TFS VS2013

like image 72
PatrickLu-MSFT Avatar answered Nov 04 '22 06:11

PatrickLu-MSFT