Export (0) Print
Expand All

How to: Set SharePoint Deployment Commands

You can customize the deployment process by setting pre-deployment and post-deployment commands. These commands run before and after other deployment actions when you debug SharePoint solutions from Visual Studio.

To add a pre-deployment command

  1. On the Project menu, click ProjectName Properties.

  2. Click the SharePoint tab.

  3. In the Pre-deployment Command Line text box, type MS-DOS or MSBuild commands to customize this step. For example, to list the directory contents before deployment is completed, type dir.

To add a post-deployment command

  1. On the Project menu, click ProjectName Properties.

  2. Click the SharePoint tab.

  3. In the Post-deployment Command Line text box, type MS-DOS or MSBuild commands to customize this step. For example, to list the directory contents after deployment is completed, type dir. To use a MSBuild variable to copy the assembly from the build directory, type copy $(TargetPath) c:\DeploymentDirectory.

Community Additions

ADD
Show:
© 2014 Microsoft