Assembly Version Number AutoIncrement

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    #1

    Assembly Version Number AutoIncrement

    Hi Gurus,
    Is there any way that whenever I compile my project it creates a new version
    number.

    I have set my AssemblyVersion as <Assembly:Assem bly("5.1.*")>.
    But it changes the verison only once a day, not everytime I compile.

    I am looking for a way to get a new verison number automatically everytime I
    compile.

    Thanks for any suggestion/advice you can provide.
    Rob.


  • \(O\)enone

    #2
    Re: Assembly Version Number AutoIncrement

    Rob wrote:
    Is there any way that whenever I compile my project it creates a new
    version number.
    The only way I have found to do this is to use a macro.

    I use one based on vb6ver by Josip Medved:



    HTH,

    --

    (O)enone


    Comment

    • Phill W.

      #3
      Re: Assembly Version Number AutoIncrement

      Rob wrote:
      Is there any way that whenever I compile my project it creates a new version
      number.
      >
      I have set my AssemblyVersion as <Assembly:Assem bly("5.1.*")>.
      But it changes the verison only once a day, not everytime I compile.
      It changes each time you open the Project to something vaguely
      time-related; I don't know exactly what, though.
      I am looking for a way to get a new verison number automatically everytime I
      compile.
      Are you writing Libraries (.dll's)?
      If so, you do /not/ want the version to change.

      Assembly version numbers are very, /very/ important when loading
      libraries into other applications.

      For the "front-line" exe's, does it matter?

      HTH,
      Phill W.

      Comment

      • \(O\)enone

        #4
        Re: Assembly Version Number AutoIncrement

        Phill W. wrote:
        Are you writing Libraries (.dll's)?
        If so, you do /not/ want the version to change.
        One of the modifications I made to the macro I mentioned was to change it to
        increment AssemblyFileVer sion rather than AssemblyVersion . AssemblyVersion
        stays at 1.0.0.0 always for exactly the reasons you mention. It was a huge
        relief when I worked out that versioning could be controlled in this way, as
        when I was actually changing the AssemblyVersion things were becomes
        extremely difficult to manage -- particularly across an entire development
        team.

        --

        (O)enone


        Comment

        Working...