title: Publish Profile not working when building website project
body: <p>I recognized that <code>Web Deployment Projects</code> are not supported in <code>Visual Studio 2012</code>. After reading <a href="http://www.diaryofaninja.com/blog/2012/08/26/visual-studio-2012-web-deployment-projects-are-dead-ndash-long-live-publishing-profiles">this article</a>, I tried to get <code>Publish Profiles</code> to work.</p>
  
  <p>After installing <a href="http://msdn.microsoft.com/library/jj161045">Visual Studio Web Publish Update</a> I was able to publish web site projects and web application projects with the new publish dialog in <code>Visual Studio 2012</code>.</p>
  
  <p>Because we are using <code>TFS 2010 Team Build</code> I tried to use publish profile via <code>MSBuild</code> parameters. But the following statement only works to publish web application projects.</p>
  
  <pre><code>MSBuild.exe MyWebs.sln /p:Configuration=Release /p:DeployOnBuild=true;PublishProfile=DeployToDirectory.pubxml
  </code></pre>
  
  <p>If I try to publish website projects nothing happens. The publish profile of my website projects only works with the new publish dialog in <code>Visual Studio 2012</code> but not when calling <code>MSBuild</code>.</p>
  
  <p>Any idea?</p>