在多个项目上使用 svn 存储库中的源代码(共享项目)

发布于 2024-09-06 12:45:03 字数 171 浏览 2 评论 0原文

过去,当使用 Visual Source Safe 时,我曾经在多个解决方案之间共享 VSS 中的项目。

这样做允许我打开 2 个 Visual Studio 解决方案,并且都使用共享库中的相同代码。

我不记得代码是否被放置在我的硬盘上两次(或更多)次。

使用 SVN 也可以吗?

Back in the old days, when using Visual source safe, i used to share projects in VSS between multiple solutions.

Doing this allowed me to open 2 visual studio solutions and both use the same code from the shared library.

I don't remember if the code was 2 (or more) times placed on my harddisk.

Is this also possible using SVN?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

朱染 2024-09-13 12:45:03

是的,您可以使用 externals 功能来执行此操作。请注意,这与 VSS 中提供的内容并不完全相同,因为在 Subversion 中您只能包含存储库的整个子树,而不是挑选和选择特定文件。

VSS 使用的方法很脆弱,对一个项目的承诺可能会影响未知数量的其他项目。甚至不要考虑尝试使用共享文件从 VSS 中获取可编译的历史版本。

Yes, you can do this using the externals feature. Note that this is not quite the same thing as what was available in VSS, because in Subversion you can only include an entire subtree of a repository, instead of picking and choosing specific files.

The method VSS used was fragile and commits to one project could affect an unknown number of other projects. Don't even think about trying to get a compilable historical build out of VSS with shared files.

2024-09-13 12:45:03

这是。 SVN 的工作原理是保留一个中央存储库,用户/开发人员可以在其计算机上签出代码/项目。

因此每个用户都有自己的当前版本副本。他们进行更改,然后当他们确定一切正常时,他们会签入更改。如果另一个人对同一个文件做了同样的事情并且他们首先检查,那么第二个人将不得不将他们的代码合并到第一个人的代码上。

It is. SVN works by keeping a central repository where users/developers checkout code/projects onto their computers.

So each user has their own copy of the current version. They make their changes then when they sure all is working they checkin their changes. If another person has done the same thing for the same file and they checking first, then the 2nd person will have to merge their code over the 1st person's code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文