|
-
Mar 29th, 2006, 11:13 AM
#1
Thread Starter
Frenzied Member
Auto increment
hey,
Is there any way to get the compiler to auto increment the revision when compiling? So far I haven't been able to find a way to do so unless you write your own dll, something I do not want to do.
Thanks,
Don't anthropomorphize computers -- they hate it
-
Mar 29th, 2006, 12:33 PM
#2
Re: Auto increment
I am pretty sure you can not, other than the auto build and revision numbers that can be generated if you use * (which is the default when you make a new app)
-
Mar 29th, 2006, 12:35 PM
#3
Thread Starter
Frenzied Member
Re: Auto increment
i'm using 2005. the asterisk is no longer supported.
Don't anthropomorphize computers -- they hate it
-
Mar 29th, 2006, 12:48 PM
#4
Re: Auto increment
sure it is.
in the solution explorer, select to show all files, then under My Project, select AssemblyInfo.vb
in there change the AssemblyVersion string to "1.0.*"
AssemblyFileVersion does NOT support an asterisk...
Application.ProductVersion will return AssemblyFileVersion, so you don't want to use that.. however
VB Code:
System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString
will return AssemblyVersion, auto incremented (if you use the *)
(i actually don't use 2005, so i dont know what the difference between AssemblyVersion and AssemblyFileVersion are..)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|