【轉】刪除已經存在的 TFS Workspace

來源:互聯網
上載者:User

標籤:des   blog   http   io   os   ar   for   檔案   sp   

刪除已經存在的 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

【轉】刪除已經存在的 TFS Workspace

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.