AnkhSVN:添加网站时没有版本控制的父目录
我最近一直在尝试 Ankhsvn,我非常喜欢它,更重要的是,它总体上也喜欢我。
但我在使用 AnkhSVN 将现有 VS 项目添加到 subversion 时遇到了问题。大多数 Windows 和 Web 项目都可以很好地添加,但是当我尝试网站(而不是 Web 应用程序)时,我遇到了问题,在这些情况下,我收到以下错误:
No versioned parent directories
经过一些谷歌搜索后,我遇到了其他人同样的问题,已经有一两个解决该问题的建议,但到目前为止还没有奏效。
AnkhSVN 足够流行,尽管现在 Web 应用程序通常比网站更受欢迎,但我希望这里有人有一个现成的解决方案。
I've recently been trying out Ankhsvn and I quite like it, and more importantly, it generally likes me.
But I've hit a problem adding existing VS projects to subversion using AnkhSVN. Most Windows and Web projects are added fine, but I have a problem when I try to a Websites (as opposed to Web Applications), and in these cases I get the following error:
No versioned parent directories
After some googling, I've come across other people with the same problems and there have been one or two suggests for solving the problem, but non so far have worked.
AnkhSVN is popular enough, and although web applications are often preferred to websites these days, I'm hoping that someone here has a ready solution available.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最可能的原因是网站与解决方案不共享共同的根。自动向 Subversion 添加新的解决方案需要它们共享一个公共根(目前)。
您可以手动将项目添加到 Subversion 存储库中的正确位置,AnkhSVN 会识别它们。这样做的问题是您的布局不必与其他开发人员的布局相匹配。因此,最好的解决方案是将网站移动到解决方案根目录中的目录,就像项目一样。
The most likely cause for this is that web sites don't share a common root with the solution. Adding a new solution to Subversion automatically requires them to share a common root (for now).
You can manually add the projects to the correct positions in the Subversion repository, and AnkhSVN will recognize them. The problem with this is that your layout doesn't have to match that of a fellow developer. Therefor the best solution is to move the website to a directory in the solution root, just like projects.