Only target one assemblyinfo.cs

Oct 10, 2013 at 3:39 PM
Great work with TFSVersioning - I've got my Build up and running and happily bumping the numbers :-)

Is it possible to only target one assemblyinfo.cs file with the AssemblyInfo file pattern ? I have a large project with a number of class libraries and one executable. Ideally I'd like to only version the exe and I'll take care of the class libraries manually.

Oct 31, 2013 at 1:08 AM
Strictly speaking, if you have assemblies being built via a sln file, then all assemblies resulting from that build are the same version. After all they all were compiled. And, how do you know for sure that they haven't changed in some way?

if you are determined to do this. rename the assemblyinfo file to something else and change the pattern.

May 16, 2014 at 7:40 PM

You got this thing working! Cngratulations!!

I am happy even if it puts same version for everything.
I am using versionseed.xml. But I am getting all versions marked .
Is there a way to be sure( some experiment) that it is reading my VersionSeed.xml

Do you have a separate AssemblyInfo.cs for each project ( I have but commented the relevant information as shown below)
//[assembly: AssemblyVersion("")]
//[assembly: AssemblyFileVersion("")]
Do I need to uncomment them?