问题
After several build / debug cycles, IIS Express (both 7.5 and 8.0RC) start to block builds of the project in VS 2010SP1.
The build will hang indefinitely until I terminate IIS Express.
Is there a fix/workaround for this issue?
回答1:
I ended up adding a pre-build event to kill IIS Express if it is running.
taskkill /FI "IMAGENAME eq iisexpress.exe"
UPDATE
This solution helps but is not perfect. Sometimes the build will fail with an error message that the IIS Express process could not be terminated. Still hoping for a better solution...
来源:https://stackoverflow.com/questions/11445157/iis-express-blocks-vs-2010sp1-builds