CoderWannaBe
.Net blog

VS 2008 version number auto increment

March 18, 2009 02:46 by bstinson

Just began working with VS 2008 and finally, MS got the version number auto increment right with this release.

Now, if you specify the following in your assemblyinfo.XX file:

<Assembly: AssemblyVersion("1.0.*")>

You'll get a true auto increment based on date/time.

 Build number is the number of days since Dec 31, 1999 and Revision number is the number of seconds since midnight, divided by 2.

Something like this:

1.0.3362.13952

If you want more control over it, there is also a nice little add-in out on codeplex that allows you to control it better: http://autobuildversion.codeplex.com/

 Also, if you want the AssemblyFileVersion to be the same as the AssemblyVersion, just comment it out or remove it from the assemblyinfo.XX file.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories:
Actions: E-mail | Permalink | Comments (3) | Comment RSSRSS comment feed

Related posts

Comments

April 8. 2009 03:00

Gravatar

Finally it came out, I have long waited for it.

Erection

April 20. 2009 16:45

Gravatar

Hey - just checking out the blogengine.net platform on yoru site as I am looking to change over from wordpress. How are you finding it's backend and themes?

Cheers

Matthew Anderson

Auto Franchise

April 21. 2009 03:36

Gravatar

Well, considering I am about 6 versions back and I really haven't done more than just choose one of the default themes, I'm not sure I would be the best person to ask. :-)

Brett Stinson

Comments are closed