<assemblyIdentity> Element (Visual Studio Tools for Office Reference)
Note |
Applies to |
---|---|
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office. For more information, see Features Available by Application and Project Type. |
Project type
Microsoft Office version
|
When an assemblyIdentity element is a child of the assembly element, the assemblyIdentity element identifies the name and version of the application manifest. When an assemblyIdentity element is a child of the dependentAssembly element, the assemblyIdentity element identifies an assembly.
<assemblyIdentity
name
version
publicKeyToken
language
/>
Elements and Attributes
The assemblyIdentity element is required. It contains no child elements and has the following attributes.
Attribute |
Description |
---|---|
name |
Required. Identifies the application manifest if the assemblyIdentity element is a child of the assembly element. Identifies the assembly if the assemblyIdentity element is a child of the dependentAssembly element. |
version |
Required. Specifies the version number of the application manifest or the dependent assembly in the following format: major.minor.build.revision |
publicKeyToken |
Specifies a 16-character hexadecimal string that represents the last 8 bytes of the SHA-1 hash value of the public key under which the application or assembly is signed. For more information, see Cryptography Overview. |
language |
This attribute is reserved for future use and is not currently supported. |
Examples
Description
The following code example illustrates an assemblyIdentity element in a Visual Studio Tools for Office application manifest. This code example is part of a larger example provided in Application Manifests for Office Solutions (2003 System).
Code
<assemblyIdentity name="project1.manifest" version="1.0.1.1" />
<asmv2:dependentAssembly>
<assemblyIdentity name="project1" version="1.0.0.0"
language="neutral" publicKeyToken="null" />
</asmv2:dependentAssembly>
Remarks
If the assembly is signed with a strong name and the assemblyIdentity element is a child of the dependentAssembly element, then the version attribute must match the version of the assembly. Otherwise, the assembly will fail to load. If the assembly is not signed with a strong name, then the version attribute is ignored.
Application and deployment manifests in Visual Studio Tools for Office solutions are not signed, as ClickOnce manifests are. The manifests cannot be validated before they are used.
Some of the fields in application and deployment manifests that are generated by the publish tools are not used in Visual Studio Tools for Office solutions, including some fields that identify properties of the assembly such as size and version.