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,
Printable View
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,
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)
i'm using 2005. the asterisk is no longer supported.
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.. howeverwill return AssemblyVersion, auto incremented (if you use the *)VB Code:
System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString
(i actually don't use 2005, so i dont know what the difference between AssemblyVersion and AssemblyFileVersion are..)