Auto-increment AssemblyFileVersion?

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

    #1

    Auto-increment AssemblyFileVersion?

    I am using the "1.0.*" pattern to auto-increment the AssemblyVersion
    attribute of my project's assembly. I'd like to have the assembly's
    AssemblyFileVer sion attribute match this value, so that I can see the
    assembly version in the Windows XP Explorer. In other words, I'd like to
    synchronize the file version of an assembly to its assembly version. I've
    discovered that the "1.0.*" pattern doesn't work for the AssemblyFileVer sion
    attribute.

    -- Can the AssemblyFileVer sion attribute be d to the AssemblyVersion
    attribute ? If so, how?

    -- Is there any reason why it would be a bad idea to do this?

    Thanks in advance.

    --
    David Veeneman
    Foresight Systems


  • Alan Pretre

    #2
    Re: Auto-increment AssemblyFileVer sion?

    "David Veeneman" <davidv@nospam. com> wrote in message
    news:eaPEFdeGGH A.2696@TK2MSFTN GP14.phx.gbl...[color=blue]
    >I am using the "1.0.*" pattern to auto-increment the AssemblyVersion
    >attribute of my project's assembly. I'd like to have the assembly's
    >AssemblyFileVe rsion attribute match this value, so that I can see the
    >assembly version in the Windows XP Explorer. In other words, I'd like to
    >synchronize the file version of an assembly to its assembly version. I've
    >discovered that the "1.0.*" pattern doesn't work for the
    >AssemblyFileVe rsion attribute.[/color]

    In your AssemblyInfo.cs file, just comment out the AssemblyFileVer sion()
    attribute, like so:

    [assembly: AssemblyVersion ("1.0.*")]
    //[assembly: AssemblyFileVer sion("1.0.0.0")]
    [color=blue]
    > -- Is there any reason why it would be a bad idea to do this?[/color]

    No. If you want more control over versioning though, see this VS addin.



    -- Alan


    Comment

    • David Veeneman

      #3
      Re: Auto-increment AssemblyFileVer sion?

      Thanks!


      Comment

      Working...