Visual studio alerts workspace already exists

纵饮孤独 提交于 2020-01-03 16:47:23

问题


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.


回答1:


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

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

  • 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




回答2:


You can use Team Foundation Sidekicks to view all workspaces for that particular machine and delete the ones you no longer need.

I use it to clean up workspaces for people that left the company and workspaces that people forgot they had on their old machines. In theory, you should be able to do everything with tf.exe, but using Team Foundation Sidekicks, just makes it a lot easier.



来源:https://stackoverflow.com/questions/41704081/visual-studio-alerts-workspace-already-exists

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!