In AssemblyInfo there are two assembly versions:
AssemblyVersion: Specify the version of the assembly being attributed.AssemblyFileVersion: Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number.
I can get the AssemblyVersion with the following line of code:
Version version = Assembly.GetEntryAssembly().GetName().Version;
But how can I get the AssemblyFileVersion?