Share via


IDeploymentStep Interface

Definition

Represents a deployment step for SharePoint projects.

public interface class IDeploymentStep
public interface IDeploymentStep
type IDeploymentStep = interface
Public Interface IDeploymentStep

Remarks

Implement the IDeploymentStep interface to create a custom deployment step for SharePoint projects. When you deploy a SharePoint project, Visual Studio executes a series of deployment steps. Visual Studio includes built-in deployment steps for many tasks, such as retracting and adding solutions. However, you can also create your own deployment steps. For more information, see Extending SharePoint Packaging and Deployment and Walkthrough: Creating a Custom Deployment Step for SharePoint Projects.

A deployment step is a singleton that is instantiated once per Visual Studio instance.

Classes that implement this interface must include the System.ComponentModel.Composition.ExportAttribute and the DeploymentStepAttribute to be discovered by the project system.

Methods

CanExecute(IDeploymentContext)

Determines whether the deployment step can be executed in the current context.

Execute(IDeploymentContext)

Executes the deployment step.

Initialize(IDeploymentStepInfo)

Initializes the deployment step.

Applies to