Results 1 to 2 of 2

Thread: AssemblyFileVersion

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    AssemblyFileVersion

    Hello,

    In the assemblyInfo.cs I have AssemblyVersion and AssemblyFileVersion.

    Normally I just increment the AssemblyVersion like this.
    1st digit: Major change
    2nd digit: Minor change
    3rd digit: bug fixes
    4rd digit: Subversion revision number

    However, I am wondering what is the AssemblyFileVersion for, and when do I need to increment. Should it be the same as the assemblyVersion?

    Should I just comment it out, if I am not using it?

    Many thanks for any advice,
    steve

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: AssemblyFileVersion

    Odd that a VB project would contain a file with a ".cs" extension. There's a forum for language-agnostic questions.

    The AssemblyVersion is a .NET thing while the AssemblyFileVersion is a Windows thing. Two assemblies with the same AssemblyVersion are considered to be the same assembly, even if they have different contents. This is useful when you reference a specific version of an assembly and the author then applies a bug fix. If the new assembly has the same AssemblyVersion as the old one then your app threats then as the same assembly. For that to work the changes would have to affect implementation only and not interface.

    The AssemblyFileVersion is what Windows reports as the file version, e.g. when you mouse over an EXE in Windows Explorer. If you delete the AssemblyFileVersion attribute then the AssemblyVersion value is used for both.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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