title: Teamcity 9x ignoring MsBuild parameters
body: <p>I am trying to build, package and deploy a web application using Teamcity but for some reason Teamcity is ignoring the properties that I am passing to MsBuild.exe.</p>
  
  <p>I have created a step in the build configuration to build, package and deploy teh application to the local server. Here are the properties:</p>
  
  <pre><code>/P:Configuration=Release 
  /P:DeployOnBuild=True 
  /P:DeployTarget=MSDeployPublish 
  /P:DeployIISAppPath=MyDeployedWebsitePath 
  /P:AllowUntrustedCertificate=True 
  /P:MSDeployPublishMethod=WMSvc 
  /P:CreatePackageOnPublish=True 
  /P:UserName=Administrator 
  /P:Password=****** 
  /P:MsDeployServiceUrl=MyServerName
  </code></pre>
  
  <p>Passing them as command line parameters to MSBuild step or declaring them as System Properties in Parameters tabs doesn't seem to work. Teamcity builds the application but ignores the package and deployment steps!</p>
  
  <p>If I execute MSBuild through command line on the same server (with the same params) the package and deployment works.</p>
  
  <p>I am following the steps mentioned in Troy Hunt's series: <a href="https://www.troyhunt.com/you-deploying-it-wrong-teamcity_26/" rel="nofollow noreferrer">https://www.troyhunt.com/you-deploying-it-wrong-teamcity_26/</a></p>
  
  <p>I have read a lot of stack overflow questions and it seems to work seamlessly for others. I am not sure what's going wrong.</p>
  
  <p>I would really appreciate any help. </p>
  
  <p><strong>Update</strong> - Build log</p>
  
  <pre><code>&gt; Step 2/2: Build (MSBuild) (51s)
  [18:32:48][Step 2/2] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_18' value='0.0']
  [18:32:48][Step 2/2] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\b12fe165603f4f19 /msbuildPath:C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
  [18:32:48][Step 2/2] in directory: C:\TeamCity\buildAgent\work\b12fe165603f4f19
  [18:32:56][Step 2/2] Targets were not defined in the build configuration.
  [18:32:56][Step 2/2] MSBuild command line parameters contain "/property:" or "/p:". It is recommended to define System Property on Build Parameters instead.
  [18:33:02][Step 2/2] EnsembleID.Web\EnsembleID.Web.csproj.teamcity: Build target: Build (37s)
  [18:33:40][Step 2/2] Process exited with code 0
  </code></pre>