Scott Hanselman

New version of UpdateVersion...great for those pesky AssemblyInfo.cs files!

October 26, '03 Comments [4] Posted in Nant
Sponsored By

Matt Griffith has updated his UpdateVersion utility, with a little help from Yours Truly and Mike Gunderloy.  Included in this update are support for a “BuildDay” algorithm ala Clemen Vasters, and various other goodnesses.  If you are constantly updating version numbers in your AssemblyInfo.cs files, check it out.  I use it in an NAnt automated build with much success.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb
Friday, March 18, 2005 3:16:36 PM UTC
The -p option in the utility is broken in v 1.2.

Monday, June 27, 2005 6:03:01 PM UTC
I have a crude fix for the -p (--pin ) option that I will be glad to send to anyone who wants it. I don't know if my fix for the broken Pin option breaks anything else since I don't really need those other fetures. I only need to use tne NAnt version task to create the new version and then pass the that generated value to UpdateVersion.exe as a "pinned" value.
Fred Morrison
Thursday, August 04, 2005 8:50:38 AM UTC

I wrote a small nant task to update the assembly info files, for both managed c++ and c#. Thought it would be useful to share :


Tuesday, December 13, 2005 7:08:00 PM UTC
I've fixed the pin option and added support for specifying additional characters on the pin address to support fixed field and incremental to the existing one (useful for those who needs it to be pinned only for some of the fields).
I'll be happy to send it to anyone who needs it.
Nir Pinhasov
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.