
VB Compiler: Can this be done ?
The closest thing to this is the AssemblyVersion that is generated each time
you build.
Look in your AssemblyInfo.vb file and you will see an entry that looks like
this:
<Assembly: AssemblyVersion("1.0.*")>
The number will be auto-gen'ed as long as you have 1.0.* as opposed to
something like 1.0.0.0 which means it will be the same every time.
You can access this version number from code by using reflection like so:
MsgBox(System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.ToS
tring())
Dave & Yu-Fang
VB.NET Development
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Quote:
> Hi,
> I was wondering,
> Is there a way to just like a ProductVersion have a compileID which is
> different each time the sourcecode is compiled
> so that 2 compilations of the same code would still generate a different
ID
> Thnx.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.381 / Virus Database: 214 - Release Date: 2/08/2002