Compartilhar via


<entryPoint> Element (Office Development in Visual Studio)

Each entryPoint element of the vstav3 namespace identifies a customization assembly that should be run when this ClickOnce application is installed.

<entryPoint class>
    <assemblyIdentity />
</entryPoint>

Elements and Attributes

The entryPoint element is required and is in the vstav3 namespace.

Each entryPoint element can contain only one customization assembly. There can be multiple entryPoint elements defined in an application manifest.

The entryPoint element has the following attributes.

Attribute

Description

class

Required. Identifies a customization assembly to be executed. The syntax for this attribute is NamespaceName.ClassName.

entryPoint has the following element.

assemblyIdentity

Required. The assemblyIdentity element in the vstav3 namespace refers to an existing assemblyIdentity element in the ClickOnce application manifest.

The role of assemblyIdentity and its attributes is defined in <assemblyIdentity> Element (ClickOnce Application).

Document-Level Customization Example

Description

The following code example illustrates entryPoint elements in an application manifest for a document-level Office solution deployed using ClickOnce. This code example is part of a larger example provided in Application Manifests for Office Solutions.

Code

      <vstav3:entryPoint 
        class="ContosoExcelWorkbook.ThisWorkbook">
        <assemblyIdentity 
          name="ContosoExcelWorkbook" 
          version="1.0.0.0" 
          language="neutral" 
          processorArchitecture="msil" />
      </vstav3:entryPoint>
      <vstav3:entryPoint 
        class="ContosoExcelWorkbook.Sheet1">
        <assemblyIdentity 
          name="ContosoExcelWorkbook" 
          version="1.0.0.0" 
          language="neutral" 
          processorArchitecture="msil" />
      </vstav3:entryPoint>
      <vstav3:entryPoint 
        class="ContosoExcelWorkbook.Sheet2">
        <assemblyIdentity 
          name="ContosoExcelWorkbook" 
          version="1.0.0.0" 
          language="neutral" 
          processorArchitecture="msil" />
      </vstav3:entryPoint>
      <vstav3:entryPoint 
        class="ContosoExcelWorkbook.Sheet3">
        <assemblyIdentity 
          name="ContosoExcelWorkbook" 
          version="1.0.0.0" 
          language="neutral" 
          processorArchitecture="msil" />
      </vstav3:entryPoint>

Application-Level Add-in Example

Description

The following code example illustrates an entryPoint element in an application manifest for an application-level Office solution deployed using ClickOnce. This code example is part of a larger example provided in Application Manifests for Office Solutions.

Code

      <vstav3:entryPoint 
        class="ContosoOutlookAddIn.ThisAddIn">
        <assemblyIdentity 
          name="ContosoOutlookAddIn" 
          version="1.0.0.0" 
          language="neutral" 
          processorArchitecture="msil" />
      </vstav3:entryPoint>

See Also

Reference

Application Manifests for Office Solutions

Deployment Manifests for Office Solutions

ClickOnce Application Manifest