<assembly> Element (Visual Studio Tools for Office Application 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

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • Microsoft Office 2003

The assembly element is the top-level element for the application manifest.

<assembly
   manifestVersion
/>

Elements and Attributes

The assembly element is the root element and is required. Its first contained element must be an assemblyIdentity element. The manifest elements must be in one of the following namespaces:

urn:schemas-microsoft-com:asm.v1

urn:schemas-microsoft-com:asm.v2

Child elements of the assembly must also be in these namespaces, by inheritance or by tagging.

The assembly element has the following attribute.

Attribute

Description

manifestVersion

Required. The manifestVersion attribute must be set to 1.0.

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 an assembly element in an application manifest for a Visual Studio Tools for Office solution. This code example is part of a larger example provided in Application Manifests for Office Solutions (2003 System).

<assembly manifestVersion="1.0" 
    xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
    xmlns="urn:schemas-microsoft-com:asm.v1"
    xmlns:asm.v2="urn:schemas-microsoft-com:asm.v2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation=
       "urn:schemas-microsoft-com:asm.v1 manifest.2.0.0.9.adaptive.xsd"
>

See Also

Reference

Application Manifests for Office Solutions (2003 System)