Valid binding root for VSS?

送分小仙女□ 提交于 2019-12-06 07:45:01

问题


I'm trying to fix up my Visual Source Safe bindings for a project I have and when I select the location I believe a project should be bound to, i get a dialog that says:

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.

What on earth does that mean? There are no folders 5 levels higher.


回答1:


I think I figured this one out. I opened my vcproj file and searched for ..\..\.. and found a couple of references to files 5 directories "higher". I removed those references (the files weren't really there) and reopened the project. After doing this, I could rebind the project to SourceSafe.




回答2:


You may want to check that the local version of the file "(project name).vspscc" is the latest one. It solved the problem in my context.




回答3:


I had the same basic issue, with VSS asking me to select a directory two levels higher than the one I had selected.

Editing the .vcproj file in Notepad, I found "SccLocalPath=..\..", and references to two files (both of which should have been removed from the project) located in "..\.." relative-path directories. I manually removed those two files from the .vcproj and changed SccLocalPath to simply "..", problem solved.



来源:https://stackoverflow.com/questions/448350/valid-binding-root-for-vss

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!