MsBuild Command line parameters for teamcity to deploy

5/2/2018 teamcity deployment best-practices ms-build ms-deploy

TeamCity is a great tool for continuous build and deploys tool for your projects. Here are the command line arguments that will come in handy while creating a build step in TeamCity.

Hope this helps some of your time in figuring out correct command line arguments for deployments.

/p:Configuration='xml-transform-name'
/p:DeployOnBuild=True
/p:DeployTarget=MSDeployPublish
/p:MsDeployServiceUrl=https://'servername or Ip Address':8172/msdeploy.axd
/p:username='username'
/p:password='password'
/p:DeployIISAppPath="'IIS Sitename'"
/p:MSDeployPublishMethod=WMSVC
/p:AllowUntrustedCertificate=True
/p:SkipExtraFilesOnServer=True

Replace text in single quotes with your details. like 'password' => Pass1234

Let me know if you are stuck, I am happy to help