wizzardmr42
wizzardmr42

Reputation: 1644

TFVC alternative to share feature

I'm looking for ideas as alternatives in TFVC to using the SourceGear Vault Share feature. At the moment I have 2 sets of shared code libraries that I use for multiple solutions - an older (messier) set which compiles to .NET 3.5 and a newer cleaner set which compiles to .NET 4. The 2 sets use different root namespaces but have a number of classes in common which I currently implement by sharing them in Vault. I do want to keep the code in sync in both places - I don't want to branch or copy them. Anyone have any ideas?

Upvotes: 0

Views: 91

Answers (1)

Dylan Smith
Dylan Smith

Reputation: 22255

Have multiple projects/solutions (a .Net 3.5 solution/projects + .Net 4 solution/projects). But use linked files to have the projects reference the same .cs files where appropriate.

When you choose Add Existing Item... click the dropdown next to the Add button to Add As Link:

enter image description here

Upvotes: 1

Related Questions