assembly version

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
I put a 1.1.* in the assembly version and when it display, it become something like "1.1.4685.39091". Do those last 2 sets of number have some kind of meaning? Time code maybe? can they be converted to the time it was complied?
 
AssemblyVersionAttribute Class (System.Reflection)
The version number has four parts, as follows:

<major version>.<minor version>.<build number>.<revision>
The default build number increments daily. The default revision number is random.
constructor says this about default build/revision:
This will cause build to be equal to the number of days since January 1, 2000 local time, and for revision to be equal to the number of seconds since midnight local time, divided by 2.

Date/Time can also be read by FileInfo for the assembly file and its LastWriteTime.
 
so can you tell what date it is by reading the build number?
Yes, you can create a Date value and use AddDays method to add those days.
 
Back
Top