Partilhar via


Project Configuration for Managing Deployment

Deployment is the act of physically moving the output items from a build process to the expected location for debugging and installation. For example, a Web application might be built on a local machine and then placed on the server.

Visual Studio supports two ways that projects can be involved in deployment:

  • As the subject of the deployment process.

  • As the manager of the deployment process.

Before solutions can be deployed, you must first add a deployment project to configure deployment options. If the deploy project does not already exist, you are asked if you want to create one when you select Deploy Solution from the Build menu or right-click the solution. Clicking Yes opens the Add New Project dialog box with the Remote Deploy Wizard project selected.

The Remote Deploy Wizard asks you for the type of application (Windows or Web), the project output groups to include, any additional files you want to include, and the remote computer you want to deploy to. The last page of the wizard displays a summary of the selected options.

Projects that are the subject of a deployment process produce output items that must be moved to an alternate environment. These output items are described as parameters for the IVsProjectCfg2 interface, whose primary purpose if to allow projects to group outputs. For more information relating to the implementation of IVsProjectCfg2, see Project Configuration for Output.

Deployment projects, which manage the deployment process, enable the Deploy command and respond when this command is selected. Deployment projects implement the IVsDeployableProjectCfg interface to perform the deployment and make calls to the IVsDeployStatusCallback interface to report deploy status events.

Configurations can specify dependencies that affect their build or deployment operations. Build or deploy dependencies are projects that must either be built or deployed before or after the configurations themselves are built or deployed. Build dependencies between projects are described with the IVsBuildDependency interface and deploy dependencies with the IVsDeployDependency interface. For more information, see Project Configuration for Building.

See Also

Concepts

Project Configuration for Building

Project Configuration for Output

Other Resources

Managing Configuration Options