title: Customizing Drop Folder Structure with TFS Team Build
body: <p>I'm using TFS 2012 to automate a build of a solution which contains multiple windows services and two web applicaitons.</p>
  
  <p>I've used the guide I found <a href="http://lajak.wordpress.com/2011/07/30/customize-binaries-folder-in-tfs-team-build-part-2/">here</a> to customize the build process template so that the windows services are put in a folder structure that I like. Specifically:</p>
  
  <ol>
  <li>\dropserver\droproot\MyApp\BuildNumber\
  <ul>
  <li>\Service1 </li>
  <li>\Service2</li>
  <li>\Service3</li>
  <li>\Service4</li>
  </ul></li>
  </ol>
  
  <p>This works great, but unfortunately it doesn't work for web applicaitons. If I used the same strategy for those, I just get the contents of /bin for each web app, rather than the full site contents.</p>
  
  <p>MSBuild typically uses the web application targets to handle this, but for some reason, this doesn't work when you customize the build as I have. I no longer get the _PublishedWebSites folder in the build output. (I'm guessing that's because I cleared our the OutDir property of the MSBuild task.)</p>
  
  <p>Has anybody done something like this and gotten it to work with web applications as well?</p>