title: Configuring TeamCity MSBuild and MSDeploy
body: <p>I'm having issues setting up different envirnoments with MSBuild and MSDeploy.</p>
  
  <p>I've setup 2 configurations on TeamCity</p>
  
  <ol>
  <li>TestConfiguration (This builds the app in Test Config and runs unit tests)</li>
  <li>StagingConfiguration (Is meant to package and deploy to our staging box for UA testing)</li>
  </ol>
  
  <p>My TestConfiguration works fine but the StagingConfiguration doesn't deploy the package.</p>
  
  <pre><code>&lt;MSBuild Projects="MyProject\MyProject.csproj"
           Properties="Configuration=Staging;
           DeployOnBuild=true;
           DeployTarget=Package;"/&gt;
  </code></pre>
  
  <p>I've tried adding both</p>
  
  <pre><code>_PackageTempDir=\\server\c$\WebDirectory;
  PackageLocation=\\server\c$\WebDirectory;
  </code></pre>
  
  <p>But neither seem to do anything, am i missing the point? I've not really been able to find any documentation, just the odd blog post here and there. Do I need to install something on my TeamCity server for MSDeploy to work?</p>
  
  <p>My ideal scenario is:</p>
  
  <ol>
  <li>Check in to tfs</li>
  <li>Run StagingConfiguartion in TeamCity manually</li>
  <li>Code is built and deployed to \server\c$\WebDirectory</li>
  </ol>