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

查看:5926
本文介绍了如何删除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.

我已经配置了詹金斯连接到团队项目,打造我的解决方案,但是当我改变连接到新的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.0\Common7\IDE\tf.exe" workspace -new Hudson-ProjectName1-Build-MASTER;domain1\username1 -noprompt -server:http://domain.net:8080/tfs/newteamproject ********
The path D:\jenkins\jobs\ProjectName1-Build\workspace is already mapped in workspace Hudson-ProjectName1-Build-MASTER [http://domain.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;domain1\username1 -noprompt -server:http://domain.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.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.net:8080/tfs/oldteamproject

和它说:在高速缓存中没有相匹配的工作区从*服务器 http://domain.net:8080/tfs/oldteamproject

and it said "No workspace in the cache matches * from server http://domain.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是同一台机器上入伍,你可以编辑远程征募!在出现,当你preSS的工作区项有一个复选框,说明显示远程工作区对话框 - 只需选中了,你会得到所有征募的列表:

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天全站免登陆