2009-01-15 67 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更改为“..”,问题解决了。