IIS Express Blocks VS 2010SP1 Builds

匆匆过客 提交于 2019-12-11 13:04:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!