Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do AssemblyInfo attributes map to Win32 VERSIONINFO?

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

Is there a list of which .NET assembly attributes map to which VERSIONINFO fields, so we can control these easily for our .NET assemblies?

like image 999
Roger Lipscombe Avatar asked Mar 10 '09 07:03

Roger Lipscombe


People also ask

What are the attributes of AssemblyInfo CS file?

Assembly identity attributes Three attributes (with a strong name, if applicable) determine the identity of an assembly: name, version, and culture. These attributes form the full name of the assembly and are required when you reference it in code. You can set an assembly's version and culture using attributes.

What is AssemblyVersion in c#?

It's the version number used by framework during build and at runtime to locate, link, and load the assemblies.


1 Answers

Concerning the "fixed Info":

PRODUCTVERSION and FILEVERSION are set from [AssemblyInformationalVersion] and [AssemblyFileVersion] respectively.

FILEOS, FILETYPE are most likely set by the compiler.

Concerning the Var File Info

[AssemblyCulture] maps to "Translation" (I guess!)

Concerning the String File Info

[AssemblyCompany] maps to "CompanyName"
[AssemblyDescription] maps to "Comments"
[AssemblyFileVersion] maps to "FileVersion"
[AssemblyTitle] maps to "FileDescription"
[AssemblyInformationalVersion] maps to "ProductVersion"
[AssemblyProduct] maps to "ProductName"
[AssemblyCopyright] maps to "LegalCopyright"

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

like image 115
Christian.K Avatar answered Oct 20 '22 15:10

Christian.K