Assembly Build Date/Time

Z

Zack Sessions

This topic has been discussed a few times. It looks to me that one of
the easiest ways to determine this is by deconstructing the Assembly
Version's Build and Revision numbers. A previous thread indicated the
Build is the number of days since January, 2000. Based on my
experimentation, it is actually the number of days since January 1,
2000, not counting January 1, 2000. So, today, June 24, 2004 yields a
Build number of 1636.

But I am a little confused with the Revision. That same thread said
the Revision is the number of seconds since midnight divided by 2. But
according to my expermentation, it is off by one hour. It looks like
the facility that generated this Revision number is not daylight time
aware. Is this the case or is something else coming into play?

Also, the Assembly Version does not increment each time the
application is built. What changes to the application causes the
version number to increment?

TIA for any and all responses. Please respond here, as email is
invalid to avoid spam.
 
P

Patrick Steele [MVP]

It looks to me that one of
the easiest ways to determine this is by deconstructing the Assembly
Version's Build and Revision numbers.

That only works if you use Visual Studio.NET and let it pick the version
for you by defining the attribute with a "1.0.*" value.

When I start a new project, that's the first thing I change -- I get rid
of the '*' and define my own build number (usually 1.0.0.0). I really
should update my templates to be 1.0.0.0.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top