title: MsBuild Web deploy ERROR_FILE_IN_USE
body: <p>I have a TFS build using Web Deploy to publish changes to a high traffic website. Build places an  AppOffline.htm when it starts. A lot of times build fails due to some dll file in use. Tried recycling app pool and stating/stop website before build, still fails. </p>
  
  <pre><code>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4255): Web deployment task failed. (The file 'xxx.dll' is in use.
    Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.)
  </code></pre>
  
  <p>Only way to publish successfully is to stop the website for whole duration while publish is going on.</p>