This documentation is archived and is not being maintained.

<entryPoint> Element (2007 System)

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

  • 2007 Microsoft Office system

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

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

The entryPoint element is required and is in the vstav2 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.

entryPoint has the following element.

assemblyIdentity

Required. For Visual Studio Tools for Office, the assemblyIdentity element in the vstav2 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).

You can manually edit application and deployment manifests in Visual Studio Tools for Office solutions. Application and deployment manifests must be re-signed by the Manifest Generation and Editing Tool (mage.exe and mageui.exe) after the manifests are edited. Sign the application manifest first and the deployment manifest next. For more information, see Manifest Generation and Editing Tool (Mage.exe) and Manifest Generation and Editing Tool, Graphical Client (MageUI.exe).

Description

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

Code

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

Description

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

Code

<vstav2:entryPoint class="OutlookAddIn2007.ThisAddIn">
    <assemblyIdentity
        name="OutlookAddIn2007"
        version="1.0.0.0"
        language="neutral"
        processorArchitecture="msil" />
</vstav2:entryPoint>
Show: