Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've set up a Visual Studio publish button for my application, including the "remove all files before publishing" setting. It looks like it's not succeeding in removing the files, though (possibly they're still locked, maybe IIS is still serving them?). Sometimes I discover left over, older, files in my testing, and have to remove the by hand.

My current workaround is to delete the site manually, and then do a publish. That kind of sucks, though. I'd like to be able to do a publish in a single click.

Is there a way to set this up? To make sure that all of the files in the directory are removed before publishing a new version of the application?

share|improve this question

1 Answer 1

I've never run into that problem, but if you stop the application pool that the app is running prior to redeployment then that should ensure IIS is not locking the files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.