title: Trying to get TFS 2012 to publish site
body: <p>I am trying to get my TFS server to build and then publish my application - building it is not a problem but deploying it yields not results.</p>
  
  <p>Quick review of my build config:</p>
  
  <ul>
  <li>Workspace: Active $/Path/to/solution Build Agent Folder: $(SourceDir)</li>
  <li>Process: Build Any CPU | Staging
  
  <ul>
  <li>Ms Build args:  /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:MsDeployServiceUrl=https://{host}:8172/msdeploy.axd /p:MsDeployPublishMethod=WMSVC /p:CreatePackageOnPublish=True /p:username= /p:AllowUntrustedCertificate=True</li>
  </ul></li>
  </ul>
  
  <p>The build agent is using a service account which I have defined as a IIS Manager on the site.  Within the project properties I have defined the site name within the Staging configuration (I have been following this vid: <a href="https://www.youtube.com/watch?v=oxJUhIQfzlA" rel="nofollow noreferrer">https://www.youtube.com/watch?v=oxJUhIQfzlA</a>)</p>
  
  <p>Is the problem I'm having around the user authentication and I should specify the username and password within the MsBuild Args?</p>
  
  <p>Within the MSBuild log, it makes no mention of publishing the application in anyway.  Where am I going wrong?</p>
  
  <p>Edit: In an attempt to get a resolution to my problem, I have included some screenshots of the build config - a username and password has been defined with admin privileges on the server</p>
  
  <p><img src="https://i.stack.imgur.com/Zmhkn.png" alt="General Tab">
  <img src="https://i.stack.imgur.com/HGDoH.png" alt="Trigger">
  <img src="https://i.stack.imgur.com/wVE6C.png" alt="Workspace">
  <img src="https://i.stack.imgur.com/MVpAa.png" alt="Build Defaults">
  <img src="https://i.stack.imgur.com/e9YML.png" alt="Process"></p>