0
votes

I am aware that Team Foundation Server Source Control does not support the shared file (link) concept of Visual Source Safe.

I currently have a scenario where we link an AssemblyVersion.cs file across multiple projects. This means that in our MSBuild script, we can update the version in one file and have it propagate throughout the projects.

How would I accomplish this with Team Foundation Server Source Control?

My first thought is to create the file in a central location and have each project include that specific file in that specific location (instead of copying it to the local source directory)...

1

1 Answers

1
votes

I don't know if you can embed the AssemblyInfo.cs as a link file. But look here, looks like it works:

In our Teambuild, we have a task which updates the AssemblyFileVersion and other attributes. We use this Task

Edit:

Actually it works with a multi solution architecture with round about 29 projects and on TFS 2005 and 2008.
I personally like the second solution cause you don't need to change all projects, only need to implement in daily/nightly build.