Updating the AssemblyFileVersion

  • Thread starter Thread starter Sam Carleton
  • Start date Start date
S

Sam Carleton

I have a software procect that now has over 30 .Net assemblies and
I need to maintain the AssemblyFileVersion for the builds. I know
it is possible to write a little utility that rifles through all
the AssemblyInfo.cs files and changes the value. Are there other
options?

Sam
 
This is what I do:
I've removed from AssemblyInfo.cs all attributes that are common to all
assemblies: Company Name, Product Name, Product Version, Signing settings,
etc.
I've put all those settings in a CommonAssemblyInfo.cs, that is shared
by all projects in the solution. To do that, I've added the file to the
solution as a "Solution Item", and then I've added a link to that file in
every project.
Whenever I want to generate a different version, I just change
CommonAssemblyInfo.cs and build the solution again.

Hope it helps
 
Back
Top