<dependentAssembly> 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
|
Provides information about dependent assemblies.
<dependentAssembly>
<assemblyIdentity
name
version
publicKeyToken
language
/>
</dependentAssembly>
Elements and Attributes
The dependentAssembly element is required and is in the asm.v2 namespace. It has no attributes.
dependentAssembly has the following child elements.
assemblyIdentity
The assemblyIdentity element is described in the topic <assemblyIdentity> Element (Visual Studio Tools for Office Reference).
Remarks
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.
Example
The following code example illustrates the dependentAssembly element in an application manifest for a Visual Studio Tools for Office application. This code example is part of a larger example provided for the Application Manifests for Office Solutions (2003 System) topic.
<dependency asmv2:name="Project1">
<dependentAssembly>
<assemblyIdentity name="Project1" version="1.0.1.1"
language="neutral" publicKeyToken="null" />
</dependentAssembly>
<asmv2:installFrom codebase=
"http://deployweb/project1/project1_1.0.1.1/project1.dll"/>
</dependency>