【转】删除已经存在的 TFS Workspace
生活随笔
收集整理的這篇文章主要介紹了
【转】删除已经存在的 TFS Workspace
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
刪除已經存在的 TFS Workspace
分類:?TFS2010-03-03 16:59?1239人閱讀?評論(2)?收藏?舉報 serverpathcommandcachefilegoogle 工作轉移到新的TFS平臺 打開source control在創建workspace時出錯 信息為: The Path <local path> is already mapped in workspace <machine name [old tfs server]> 很詭異的bug:)Google搜索發現別人也遇到過相同的問題(估計是很多人遇到過) http://geekswithblogs.net/aaronsblog/archive/2006/09/11/90878.aspx 參考Kevin Jones的博客文章,我們知道Client端的配置信息存儲在 “C:/Documents and Settings/[user]/Local Settings/Application Data/Microsoft/Team Foundation/1.0/Cache/VersionControl.config” 不過讓每個人修改config文件可不是個好的workaround
好在Buck Hodges給出了較為明確的解釋: 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:http://oldserver:8080?to just clear out the workspaces that were on the old server. The MSDN doc for the workspaces command are at?http://msdn2.microsoft.com/en-us/library/54dkh0y3.aspx.?
嘿嘿,打開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
總結
以上是生活随笔為你收集整理的【转】删除已经存在的 TFS Workspace的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: navicat 导入excel 闪退
- 下一篇: 【原】winform高效导出Excel带