问题描述
这可能是一个愚蠢的问题,但是有一个小团队(不使用TFS)可以轻松地在VS 2010解决方案中共享代码的好方法?
This may be a stupid question, but is there a nice way for a small team (not using TFS) to easily share code across VS 2010 solutions?
IE如果Project1DLL在Project2中被引用,那么每当Project1重新发布时,项目二中的引用都将被更新。
IE, if Project1.DLL is referenced in Project2, then everytime Project1 is republished, the reference in project two will have to be updated.
我有意义吗?
谢谢!
Am I making any sense?Thanks!
推荐答案
我将如何组织您的存储库:
Here's how I would organize your repository:
说明:
Project1和Project2应该有同一级别的代码。
Both Project1 and Project2 should have their own codeline, at the same level.
项目依赖关系通过将 / Project1 / Main 分支到 / Project2 / Main / Dependencies / Project1
Project dependencies are handled by branching /Project1/Main into /Project2/Main/Dependencies/Project1
Project1可以被更多项目使用。
Project1 can be consumed by more projects.
Project1中的代码更改必须在 / Project1 / Main 中完成,更改必须分为需要更改的项目。
Code changes in Project1 must be done in /Project1/Main and changes must be branched into the projects that needs the changes.
我不知道保险柜,但我希望它可以处理此设置。我有一个这样使用Team Foundation Server 2010的设置。
I do not known Vault, but I hope it can handle this setup. I have a setup like this using Team Foundation Server 2010.
这篇关于在VS 2010项目中共享代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!