如何删除 TFS 工作区映射? [英] How to remove a TFS Workspace Mapping?

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

问题描述

我在一个团队项目中的 tfs 中有一个项目,然后我们将该项目移动到另一个团队项目中的不同位置.

I had a project in tfs within a team project then we moved the project to a different location in another team project.

我已将 Jenkins 配置为连接到团队项目并构建我的解决方案,但是当我更改设置以连接到新的 tfs 团队项目时,出现以下错误:

I had configured Jenkins to connect to the team project and build my solution but when I changed the settings to connect to the new tfs team project, it gives me the below error:

[workspace] $ "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDE	f.exe" workspace -new Hudson-ProjectName1-Build-MASTER;domain1username1 -noprompt -server:http://domain-eg.net:8080/tfs/newteamproject ********
The path D:jenkinsjobsProjectName1-Buildworkspace is already mapped in workspace Hudson-ProjectName1-Build-MASTER [http://domain-eg.net:8080/tfs/oldteamproject].

所以上面显示有一个现有的工作区,所以我运行下面的命令来删除它

So the above shows that there is an existing workspace so I ran the below command to remove it

tf workspace -delete Hudson-ProjectName1-Build-MASTER;domain1username1 -noprompt -server:http://domain-eg.net:8080/tfs/oldteamproject

它提示工作区已被删除,但我仍然遇到同样的错误.

and it prompted that the workspace has been removed but I'm still getting the same error.

我还通过运行以下命令检查了映射是否已被删除:

I also checked whether the mapping has been removed or not by running the below command:

tf workspace -server:http://domain-eg.net:8080/tfs/oldteamproject Hudson-ProjectName1-Build-MASTER

但它说工作区不按预期存在.

but it says the workspace doesn't exist as expected.

所以,我认为它可能将它缓存在某处并运行以下命令:

So, I thought it might be caching it somewhere and ran the below command:

tf workspaces /remove:* /collection:http://domain-eg.net:8080/tfs/oldteamproject

它说缓存中没有工作区匹配*来自服务器http://domain-eg.net:8080/tfs/oldteamproject"

and it said "No workspace in the cache matches * from server http://domain-eg.net:8080/tfs/oldteamproject"

所以我猜它甚至没有被缓存.

so I'd guess it's not even cached.

那么是什么导致了错误以及如何解决它?

So what's causing the error and how to resolve it?

推荐答案

来自 VS:

  1. 打开团队资源管理器
  2. 点击源代码管理资源管理器
  3. 在工具窗口的导航栏中有一个标签为工作区"的下拉菜单.
  4. 扩展它并单击工作区..."选项(是的,有点不直观)
  5. 管理工作区"窗口出现.单击编辑,您可以添加/删除/编辑您的工作区

来自不同机器上的 VS

您不需要 VS 与登记在同一台机器上,因为您可以编辑远程登记!在按下工作区..."项时出现的对话框中,有一个复选框说明显示远程工作区"-只需勾选它,您就会获得所有登记的列表:

You don't need VS to be on the same machine as the enlistment as you can edit remote enlistments! In the dialog that comes up when you press the "Workspaces..." item there is a check box stating "Show Remote Workspaces" - just tick that and you'll get a list of all your enlistments:

从命令行

从开发人员命令提示符调用tf 工作区".它会直接调出管理工作区"!

Call "tf workspace" from a developer command prompt. It will bring up the "Manage Workspaces" directly!

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

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