Results 1 to 4 of 4

Thread: Auto increment

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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)

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Auto increment

    i'm using 2005. the asterisk is no longer supported.
    Don't anthropomorphize computers -- they hate it

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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:
    1. 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
  •  



Click Here to Expand Forum to Full Width