<postAction> 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
The postAction
element of the vstav3
namespace contains the entrypoint
elements and all postActionData
elements that are associated with post-deployment actions, which run after Office solutions are installed.
Syntax
<postAction>
<entryPoint>
</entryPoint>
<postActionData>
</postActionData>
</postAction>
Elements and attributes
The postAction
element is optional and it is in the vstav3
namespace. There is one postAction
element defined in an application manifest for each post-deployment action.
The postAction
element has no attributes.
postAction
has the following elements.
entryPoint
Optional. The role of the entryPoint
element in the vstav3
namespace is defined in <entryPoints> element (Office development in Visual Studio).
postActionData
Optional. The role of the postActionData
element in the vstav3
namespace is defined in <postActionData> element (Office development in Visual Studio).
Post-deployment action example
Description
The following code example illustrates the postAction
element in an application manifest for an Office solution that is deployed by using ClickOnce. This code example is part of a larger example provided in Application manifests for Office solutions.
Code
<vstav3:postAction>
<vstav3:entryPoint
class="PostDeploymentAction.PostDeploymentActionSample">
<assemblyIdentity
name="PostDeploymentAction"
version="1.0.0.0"
language="neutral"
processorArchitecture="msil" />
</vstav3:entryPoint>
<vstav3:postActionData>
</vstav3:postActionData>
</vstav3:postAction>