title: Publish .Net Core to IIS - Process cannot access file
body: <p>I am deploying my ASP .Net Core 2.0 app to my remote server using FTP. Remote Server is using IIS 8. When I publish my app, I get the following error.</p>
  
  <pre><code>Unable to add 'Project.dll' to the Web site.  The process cannot access the file because it is being used by another process (550).
  </code></pre>
  
  <p>I been able to bypass this by manually creating an <code>app_offline.htm</code> first on the publish directory, and then publishing my app via Visual Studio 2017.  </p>
  
  <p>I was wondering, is there an easier way of doing this? or is there an easy way I can script this, so that app_offline gets created automatically before publish? and then deleted after publish? </p>