sharing code across VS 2010 projects

2019-05-18 04:58发布

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, 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!

1条回答
劳资没心,怎么记你
2楼-- · 2019-05-18 05:11

Here's how I would organize your repository:

enter image description here

Explanation:

Both Project1 and Project2 should have their own codeline, at the same level.

Project dependencies are handled by branching /Project1/Main into /Project2/Main/Dependencies/Project1

Project1 can be consumed by more projects.

Code changes in Project1 must be done in /Project1/Main and changes must be branched into the projects that needs the changes.

I do not known Vault, but I hope it can handle this setup. I have a setup like this using Team Foundation Server 2010.

查看更多
登录 后发表回答