System.Reflection.Emit.AssemblyBuilder.DefineVersionInfoResource Method

Defines an unmanaged version information resource for this assembly with the given specifications.

Syntax

public void DefineVersionInfoResource (string product, string productVersion, string company, string copyright, string trademark)

Parameters

product
The name of the product with which this assembly is distributed.
productVersion
The version of the product with which this assembly is distributed.
company
The name of the company that produced this assembly.
copyright
Describes all copyright notices, trademarks, and registered trademarks that apply to this assembly. This should include the full text of all notices, legal symbols, copyright dates, trademark numbers, and so on. In English, this string should be in the format "Copyright Microsoft Corp. 1990-2001".
trademark
Describes all trademarks and registered trademarks that apply to this assembly. This should include the full text of all notices, legal symbols, trademark numbers, and so on. In English, this string should be in the format "Windows is a trademark of Microsoft Corporation".

Remarks

An assembly can be associated with only one unmanaged resource. This means that calling AssemblyBuilder.DefineVersionInfoResource(string, string, string, string, string) or AssemblyBuilder.DefineUnmanagedResource(Byte[]) after either one of the methods was called previously will throw the System.ArgumentException. Multiple unmanaged resources need to be merged with a tool such as the Microsoft ResMerge utility (not supplied with the common language runtime SDK).

Empty argument strings get written as a single space. Spaces are substituted for null characters in the argument strings.

The structure of the version resource includes data that identifies the version, language, and distribution of the file. Installation programs use the functions in the file installation library (VER.DLL) to retrieve the version information resource from a file and to extract the version information blocks from the resource.

Note:

Starting with the net_v20sp1_long, this member no longer requires System.Security.Permissions.ReflectionPermission with the System.Security.Permissions.ReflectionPermissionFlag.ReflectionEmit flag. (See Security Issues in Reflection Emit.) To use this functionality, your application should target the net_v35_long or later.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0