Udostępnij za pośrednictwem


<assembly> Element (Visual Studio Tools for Office Deployment 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 deployment 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 the following namespaces:

urn:schemas-microsoft-com:asm.v1

urn:schemas-microsoft-com:asm.v2

http://www.w3.org/2000/09/xmldsig\#

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. This 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 a deployment manifest for a Visual Studio Tools for Office solution. This code example is part of a larger example provided for the Deployment Manifests for Office Solutions (2003 System) topic.

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

See Also

Reference

Deployment Manifests for Office Solutions (2003 System)