title: Full list of /P MSDeploy arguments for MSBuild from TeamCity
body: <p>I currently use the MSBuild runner in TeamCity for continuous integration on my local server and this works very well. However, I'm having trouble finding a full list of supported command line switches for MSDeploy in the format that TeamCity expects them.</p>
  
  <p>In my 'Parameters' section at the moment I using the following switches:</p>
  
  <pre><code>  /P:Configuration=OnCommit
    /P:DeployOnBuild=True
    /P:DeployTarget=MSDeployPublish
    /P:MsDeployServiceUrl=https://CIServer:8172/MsDeploy.axd
    /P:AllowUntrustedCertificate=True
    /P:MSDeployPublishMethod=WMSvc
    /P:CreatePackageOnPublish=True
    /P:UserName=Kaine
    /P:Password=**********
    /P:DeployIISAppPath="OnCommit/MySite"
    /P:SkipExtraFilesOnServer=True
    /P:DeployAsIisApp=True
  </code></pre>
  
  <p>All of these seem to work fine and the MSDeploy works as expected.</p>
  
  <p>The trouble comes when I want to add additional parameters.</p>
  
  <p>I've looked up MSBuild parameters and the MSDeploy documentation and I only seem to find command line parameters like these:</p>
  
  <pre><code>msbuild SlnFolders.sln /t:NotInSolutionfolder:Rebuild;NewFolder\InSolutionFolder:Clean
  </code></pre>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/ms164311.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms164311.aspx</a></p>
  
  <p>It seems that these references for command line arguments don't correspond with the /P: format - for example CreatePackageOnPublish and DeployIISAppPath aren't recognised command line parameters, but they work fine in the TeamCity build process.</p>
  
  <p>Where can I find a full documented list of MSDeploy arguments in the format</p>
  
  <p>/P:Param=Value</p>
  
  <p><strong>Additional info:</strong></p>
  
  <p>There's a list of parameters here:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.msbuild_properties.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.msbuild_properties.aspx</a></p>
  
  <p>However this is not a complete list - for example, this list doesn't include DeployAsIisApp or SkipExtraFilesOnServer, which are both parameters that work from the Team City Build.</p>
  
  <p>Also this related question (possibly duplicate): <a href="https://stackoverflow.com/questions/5598668/valid-parameters-for-msdeploy-via-msbuild">Valid Parameters for MSDeploy via MSBuild</a> which contains some arguments - but still not a definitive list.</p>