如何删除另一个用户的 TFS 工作区映射 [英] how to remove TFS workspace mapping for another user

查看:40
本文介绍了如何删除另一个用户的 TFS 工作区映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio 2010.几个月前,我使用一些ABC"TFS 用户连接到 TFS 并在我的本地驱动器上映射了一些文件夹.现在我以前的用户ABC"不见了,我被分配了一个新的 tfs 用户XYZ"来连接到 TFS.所以很自然地,我尝试将一些远程文件夹映射到我现有的本地文件夹,但出现以下错误.

I am using Visual Studio 2010. Some months back I was using some 'ABC' TFS user to connect to TFS and mapped some folders on my local drive. Now my previous user 'ABC' is gone and I am allotted a new tfs user 'XYZ' to connect to TFS. So naturally I tried mapping some remote folder to my existing local folder and I got the following error.

工作文件夹Some_Local_Path"已被计算机MACHINE_NAME"上的工作区 WORKSPACE_NAME:USER_NAME 使用"

我已尝试删除缓存文件夹内容,但出现相同错误 (C:\Users{UserName}\AppData\Local\Microsoft\Team Foundation\3.0\Cache).我还尝试运行常见的 TFS 命令(tf workspaces/remove:*)来删除所有工作空间的缓存,但仍然出现相同的错误.当我尝试编辑我的工作区时,它显示了我当前用户XYZ"的源代码管理和本地文件夹,但我想要的是删除我以前的用户ABC"的文件夹绑定.我怎样才能做到这一点?

I have tried removing the cache folder contents but the same error (C:\Users{UserName}\AppData\Local\Microsoft\Team Foundation\3.0\Cache). I have also tried running the commonly found TFS command (tf workspaces /remove:*) to delete the caches for all worksapaces but still the same error. When I try to edit my workspace, it shows source control and local folders for my current user 'XYZ' but what I want is to remove the folder bindings for my previous user 'ABC'. How can I achieve that?

推荐答案

如果您无权访问该帐户,则需要让您的 TFS 管理员删除工作区.

You need to get your TFS administrator to delete the workspace if you have no access to the account.

您可以通过使用指定的显式用户调用tf 工作区"来实现,但您需要管理其他用户工作区"权限.TF Sidekicks 使用相同的命令,因此需要相同的权限.这是一个 TFS 管理员生产力工具.

You may be able to do it by calling "tf workspace" with the explicit user specified, but you need "manage other users workspace" permission. TF Sidekicks uses the same commands so would require the same permission. It is a TFS admin productivity tool.

https://msdn.microsoft.com/en-us/图书馆/y901w7se(v=vs.100).aspx

您可以使用:

tf workspace /delete "WORKSPACENAME;PREVIOUSUSERACCOUNT"

这篇关于如何删除另一个用户的 TFS 工作区映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆