title: Azure devops release pipeline runs forever with error: The process cannot access the file because it is being used by another process
body: <p>I'm running a deployment on Azure pipelines and the release got stuck while copying files. This resulted in an unending process which is not desirable.</p>
  
  <p>The error I received was:</p>
  
  <blockquote>
    <p>ERROR 32 (0x00000020) Copying File
    C:\azagent\A2_work\r3\a_mach1-light\build\MyProject\HtmlRenderer.dll
    The process cannot access the file because it is being used by another
    process.</p>
  </blockquote>
  
  <p>I think this issue is not a permanent one since I've been able to successfully run the same release pipeline several times in the past but I want to figure out why it happens.</p>
  
  <p>I've read several docs relating to Azure pipelines and troubleshooting on microsoft's website but none has been useful.</p>
  
  <p>I've also tried to rerun the build pipeline so it could create another release but the issue still persists.</p>
  
  <p>I'd be happy to get advice from anyone who has experienced this before.</p>
  
  <p>Thanks</p>