Dnx lock on IIS files - unable to copy

We have an ASPNet5 site (angular site and web service) that works under IIS 8.5 successfully. Now the problem we are facing is blocking dnx on files that prevent us from redeploying the site from our automatic deployment server. The task is to simply use robocopy to complete the task, but I can reproduce it with a simple copy. Essentially, the error is that "the process cannot access the xxxx file because it is being used." The files in question are mainly located in the approot / packages directory.

The question is how to get around this. The main goal is the ability to redeploy without having to destroy a site that seems impractical.

We work on Win2012R2, IIS8.5 and clr rc1-update1.

Thanks for your help in advance.

+4
source share

Source: https://habr.com/ru/post/1619404/