Udostępnij za pośrednictwem


<entryPoints> 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

The entryPoints element of the vstav2 namespace contains all the entryPoint elements associated with a Visual Studio Tools for Office solution.

<entryPoints>
    <entryPoint>
    </entryPoint>
    <entryPoint>
    </entryPoint>
    <entryPoint>
    </entryPoint>
</entryPoints>

Elements and Attributes

The entryPoints element is required and is in the vstav2 namespace. There is only one entryPoints element defined in an application manifest.

The entryPoints element has no attributes.

entryPoints has the following elements.

entryPoint

Required. The role of the entryPoint element in the vstav2 namespace is defined in <entryPoint> Element (2007 System).

Remarks

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).

Document-Level Customization Example

Description

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

Code

<vstav2:entryPoints>
    <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>
</vstav2:entryPoints>

Application-Level Add-in Example

Description

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

Code

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

See Also

Reference

Application Manifests for Office Solutions (2007 System)

Deployment Manifests for Office Solutions (2007 System)

ClickOnce Application Manifest