AssemblyVersion build and revision number


The other day I was wondering where the AssemblyVersion build and revision numbers come from if you use the default synax in your AssemblyInfo files:


//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Revision
// Build Number
//
// You can specify all the value or you can default the Revision and Build Numbers
// by using the ‘*’ as shown below:

[assembly: AssemblyVersion(“1.0.*”)]


Well it turns out that the build number is set to the number of days since a
random, designated start date, and the revision based on the number of
seconds since midnight.


It’s interesting that it took 15 or so minutes on google to find this post that has this little nugget.

Comments (5)

  1. Ryan Gregg says:

    I’m not sure Random is a good way of putting it. It is a specified date, by default Jan 1 2000. It can however be changed in the registry to a different date.

    I didn’t know revision came that way, and that’s strange, because the number always seemed so random to me.

  2. Omar Shahine says:

    Hmmm, I was just quotting the person who made the google post. it’s good to know it’s not so random.