2009-01-15 68 views
3

我試圖解決我的Visual源安全綁定爲一個項目我有,當我選擇的位置,我相信一個項目應該被綁定到,我得到一個對話框,上面寫着:VSS的有效綁定根目錄?

The folder you chose is not a valid binding root for the projects you have selected. You attempted to retarget a solution to a source control folder that is not within the solution's root. In the change source control dialog box, specify the root for the solution. Select the folder 5 levels higher in the tree to chagne the source control bindings correctly.

這到底意味着什麼?沒有文件夾高5級。

回答

4

我想我想出了這一個。我打開了我的vcproj文件並搜索了.. \ .. \ ..,並找到了幾個對「更高」文件目錄的引用。我刪除了這些引用(文件不是真的在那裏)並重新打開了該項目。做完這些之後,我可以將該項目重新綁定到SourceSafe。

+0

謝謝你,你只是幫我找出我的問題! – 2010-12-01 19:20:05

0

您可能需要檢查文件「(項目名稱).vspscc」的本地版本是否是最新版本。它解決了我的問題。

0

我有同樣的基本問題,VSS要求我選擇比我選擇的級別高兩級的目錄。

在記事本中編輯.vcproj文件,我發現「SccLocalPath = .. \ ..」,並且引用位於「.. \ ..」中的兩個文件(兩者應該已從項目中刪除)。相對路徑目錄。我手動從.vcproj中移除了這兩個文件,並將SccLocalPath更改爲「..」,問題解決了。