<entryPoint> element (Office development in Visual Studio)
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Each entryPoint
element of the vstav3
namespace identifies a customization assembly that should be run when this ClickOnce application is installed.
Syntax
<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>
VSTO 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>