Archive

AssemblyVersionAttribute explained

2005-08-29 10:59:22 by Kjell-Åke Gafvelin

Since I could not find a good explanation myself for how buildnumber and revision is generated for the AssemblyVersionAttribute when you specify the pattern "1.0.*", I decided to write my own.

When you specify that you want to have buildnumber and revision automatically generated then the compiler (C#) will generate buildnumber as the number of days from the 1st of January 2000. The revision is generated as the number of seconds from midnight divided by two, but it will NOT take daylight savings time into account.

|