How do AssemblyInfo attributes compare with Win32 VERSIONINFO?

When you view properties for a binary file that contains a VERSIONINFO resource, Windows adds the Version tab, which displays this information.

Is there a list of .NET assembly attributes that include the VERSIONINFO fields, so we can easily control them for our .NET collections?

+7
versioning
source share
2 answers

Regarding "fixed information":

PRODUCTVERSION and FILEVERSION are installed with [AssemblyInformationalVersion] and [AssemblyFileVersion] respectively.

FILEOS, FILETYPE are most likely set by the compiler.

Regarding Var File Information

[AssemblyCulture] appears in Translation (I think!)

Regarding String File Information

[AssemblyCompany] appear in "CompanyName"
[AssemblyDescription] maps in the "Comments"
[AssemblyFileVersion] displayed in "FileVersion"
[AssemblyTitle] displays "FileDescription"
[AssemblyInformationalVersion] maps for "ProductVersion"
[AssemblyProduct] displays "ProductName"
[AssemblyCopyright] appears in LegalCopyright

I think that "InternalName" and "OriginalFile" are set to the name of the DLL or EXE, respectively.

+12
source share

[AssemblyFileVersion] attribute (among others) does this, I believe, for example:

 [assembly:AssemblyFileVersion("1.2.3.4")] 

You should find this parameter in the default AssemblyInfo.cs file generated by the IDE; if not, declare it yourself (as indicated above).

You can also look in the "Assembly Information ..." dialog box in the project properties, which provides access to this and others.

0
source share

All Articles