I don't like the idea of writing special-case tools to perform such basic codegen.
In this old blog article, I show how I use an X-Code .NET template to emit an AssemblyVersion.cs file based on the current datetime. (Scroll down, past the rant about version-incrementing. :) http://weblogs.asp.net/savanness/archive/2003/09/17/27906.aspx <% var now:DateTime = DateTime.Now; var build:short = (short)(now.Year); var revision:short = (short)(now.Month*1000 + now.Day*10 + now.Hour*10/24); %> [assembly: System.Reflection.AssemblyVersion( "<%= major %>.<%= minor %>.<%= build %>.<%= revision %>")] I don't really support X-Code .NET for the general public anymore -- I tend to recommend CodeSmith. (Its syntax is 99% identical to the above.) -S -----Original Message----- From: Mitesh - HelpSTAR.com [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 14:12 Subject: Re: How to change Assembly Version programmatically. I downloaded the code and compiled it, but it doesn't work, i'm getting "Version not found in input. Output equals input." error. I checked AssemblyInfo.vb there is a version tag. Do you have any clue??? Thanks, Mitesh -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Mike Gunderloy Sent: Monday, July 12, 2004 2:51 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] How to change Assembly Version programmatically. http://code.mattgriffith.net/UpdateVersion/ Mike Gunderloy http://www.larkware.com > -----Original Message----- > From: Unmoderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Mitesh Patel > Sent: Monday, July 12, 2004 11:33 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] How to change Assembly Version > programmatically. > > I'm looking for a solution for changing Assembly version of > AssemblyInfo.vb. Is there anyone know how to change version > using any tool or by writing some code??? > > Thanks, > Mitesh =================================== This list is hosted by DevelopMentor. http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor. http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
