IIS Express阻止VS 2010SP1构建 [英] IIS Express Blocks VS 2010SP1 Builds

查看:107
本文介绍了IIS Express阻止VS 2010SP1构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过几个构建/调试周期后,IIS Express(7.5和8.0RC)开始阻止VS 2010SP1中项目的构建.

After several build / debug cycles, IIS Express (both 7.5 and 8.0RC) start to block builds of the project in VS 2010SP1.

在我终止IIS Express之前,该版本将无限期挂起.

The build will hang indefinitely until I terminate IIS Express.

是否有针对此问题的修复程序/解决方法?

Is there a fix/workaround for this issue?

推荐答案

我最终添加了一个预生成事件,以杀死IIS Express(如果正在运行).

I ended up adding a pre-build event to kill IIS Express if it is running.

taskkill/FI"IMAGENAME eq iisexpress.exe"

taskkill /FI "IMAGENAME eq iisexpress.exe"

更新

此解决方案有帮助,但并不完美.有时,构建将因无法终止IIS Express进程的错误消息而失败.仍然希望有更好的解决方案...

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...

这篇关于IIS Express阻止VS 2010SP1构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆