During our production builds, a très large (10 megabyte) static content file in le root directory will sometimes be locked by IIS et cannot be deleted by le clean task. Ceci est presumably parce que it is being actively served to one ou more clients at le time.
The build process stops le website avant cleaning via
c:\Windows\System32\inetsrv\appcmd.exe stop site http://oursite.com
Cependant, this does not release le file - we have to restart IIS to get le process to relinquish its lock.
appcmd.exe allows you to take IIS down completely; we do not want to do this!
Are there tout autre ways to get IIS to let go of a locked file, sans restarting IIS? Simply stopping et starting le individual website is definitely pas working to release le file lock.