Visual Studio 警报工作区已存在 [英] Visual studio alerts workspace already exists
问题描述
我管理的 TFS 服务器的一位用户遇到了问题.我们最近经历了用户 ID 更改,因此这弄乱了我们的一些工作区.我试图在她的机器上创建一个新的本地工作区,它一直说本地映射的文件夹已经用于她的旧工作区.
我们已经删除了所有的 TFS 和 VS 缓存文件夹,做了 userdatareset,并且使用 tf.exe 工作区命令它没有列出我试图摆脱的这个有问题的工作区.我可以使用其他方法来摆脱这个工作区.
如果要使用 tf workspace 命令删除其他人的旧工作区.确保您拥有自己的管理其他用户工作区权限.否则,如果您无权访问该帐户,则需要让您的 TFS 管理员删除工作区.只需使用以下命令.
tf workspace/delete "WORKSPACENAME;PREVIOUSUSERACCOUNT";
您也可以使用
- 在过滤器中,选择所有者名称、计算机名称、访问日期
- 最后,您应该能够删除废弃的工作区.
注意:TF Sidekicks 使用相同的命令,因此需要相同的权限.这是一个 TFS 管理员生产力工具.
更多详情请参考类似问题:Delete Old Workspaces on TFS VS2013
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.
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
这篇关于Visual Studio 警报工作区已存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!