sharing code across VS 2010 projects

2019-05-18 04:23发布

问题:

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:

Here's how I would organize your repository:

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.