Do you Configure the ExecuteBatchTemplate Build Process Template?
Loading last updated info...
Configure the ExecuteBatchTemplate Build Process Template.
Figure: Enter the DeployOnBuild MsBuild argument, and then enter the name of the deployment batch file you wish to execute upon successful build of the project. Every time this build is executed successful (and all the unit tests pass), the specified batch file will run – deploying the site automatically.