博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【转】删除已经存在的 TFS Workspace
阅读量:5871 次
发布时间:2019-06-19

本文共 1840 字,大约阅读时间需要 6 分钟。

分类: 
工作转移到新的TFS平台
打开source control在创建workspace时出错
信息为:
The Path <local path> is already mapped in workspace <machine name [old tfs server]>
很诡异的bug:)
Google搜索发现别人也遇到过相同的问题(估计是很多人遇到过)
参考 的博客文章,我们知道Client端的配置信息存储在
“C:/Documents and Settings/[user]/Local Settings/Application Data/Microsoft/Team Foundation/1.0/Cache/VersionControl.config”
不过让每个人修改config文件可不是个好的workaround
好在 给出了较为明确的解释:
The reason that you hit this is due to switching servers. Every server has a unique identifier, which is a GUID. Each local path can only be mapped in a single workspace. You originally had a workspace on the first server that used the local path you wanted to use with the new server. Let's say that's c:/projects. When you create the new workspace on the new server (GUID2) that you also want to map to c:/projects, the client sees that the old server (GUID1) is already using that local path. Since the IDs for the servers do not match, the client complains that c:/projects is already mapped to the old workspace on the old server. 
并且有了明确的解决方法:
The solution is to clear the cache file, as described above. The problem will not occur if you upgrade the same server (i.e., you don't create a new server). 
You can use the command "tf workspaces /remove:*" to clear out all of the cached workspaces (it only affects the cache file). You can specify /s:  to just clear out the workspaces that were on the old server. The MSDN doc for the workspaces command are at  . 
嘿嘿,打开VS2008的CMD,输入"tf worksapces /remove:* /s:http://oldserver:8080"
返回VS中的TeamExplorer发现还是不行
于是决定删除所有的cache中的workspace
"tf workspaces /remove:*"
再次返回TeamExplorer,一切OK了:)
 
多说一句,MSDN文档真的很烂,到现在了内容也不更新,还是要求输入/s:ServerName,
如果这样输入,会有个错误告诉你:URI非法,不能够识别URI的格式。
 
转自:http://blog.csdn.net/wenjie847/article/details/5342856

转载于:https://www.cnblogs.com/EddyPeng/p/4019248.html

你可能感兴趣的文章
从QQ空间热度分析看社区营销
查看>>
CAS 4.1.x 单点登出(退出登录)的原理解析
查看>>
实现简单购物车功能
查看>>
python 在不同层级目录import 模块的方法
查看>>
开源中国 4 周年, 三个平台客户端全面开源
查看>>
java.util.concurrent 学习(一)
查看>>
DecimalFormat的用法
查看>>
SCONS如何集成工具
查看>>
Mind_Manager_2
查看>>
微信开发
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
Struts2 <s:iterator > 用法
查看>>
ActiveMQ配置详解之如何配置自动重新连接
查看>>
cmd fsutil 命令 - 创建指定大小文件命令
查看>>
linux用grep查找文件内容
查看>>
sleep() wait() yield() join()
查看>>
Citrix 桌面及应用虚拟化系列之一:XenServer安装
查看>>
centos安装词典——图形界面的和命令行
查看>>
OSGI是什么
查看>>