Generate current assembly version manually

  • Thread starter Thread starter Oleg Ogurok
  • Start date Start date
O

Oleg Ogurok

Hi all,

If AssemblyInfo.cs has 1.0.* as the version, then the version numbers are
generated automatically by the compiler, e.g. 1.0.234.8756.

Is there a publicly available method that generates those numbers? Or is
there an algorithm for generating them?

I'm trying to write a VS.NET plugin that will go through all AssemblyInfo.cs
files in all projects and set the version when I need it, instead of using
1.0.* format and letting the compiler decide on the version.

Thank you,

Oleg.
 
The 234 and 8756 in your example is the elapsed time in days and seconds
since a specified date. I cannot find the exact start date right now, but
that's what it is. It ensures that your assembly has a higher version number
every time you compile it.

If you don't like this behaviour, why not simply setting it to 1.0.0.0 ?
VS.NET will not change the version when you've specified fixed values for
it.


Michael
 
Back
Top