...
- DeployOnBuild=True: This is telling MSBuild that we want to deploy our website once it has finished building.
- msDeployServiceUrl: This is the url to our Web deployment handler on our web server. This should be the same url as you used when we manually published our build.
- AllowUntrustedCertificate=true: This flag is the same as the Allow Untrusted Certificate check that is used when manually publishing a build.
- MSDeployPublishMethod=WMSvc: This tells MSBuild to use the Web deployment handler to publish the build.
- CreatePackageOnPublish=True: Creates a local package when deploying the website.
- UserName=<domain>\<username>: The username that will be used to deploy.
- Password=<password>: The username's password. Note that you can mask your password from the UI and build logs by using a password variable. Once you have your password in a password variable, you can call it here by using Password=%myPasswordVariable%
The properties tab should look something like this:
...