-
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,
-
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.