为什么进入调试模式时,VS2008会为每个网站/应用程序生成一个Cassini? [英] Why do VS2008 spawn one Cassini for each web-site/application when going into debug mode?

查看:81
本文介绍了为什么进入调试模式时,VS2008会为每个网站/应用程序生成一个Cassini?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我有很多不同的Web应用程序和站点,其中大约有10-15个是一个很大的解决方案。

I have quite a big solution here with a lot of different web applications and sites, around 10-15 of them.

当我将VS2008附加到任何进程(最有可能是Nunit.exe或类似的东西)时,解决方案中的每个网站/应用程序都会得到一个Cassini进程。是否有一种快速的方法可以消除VS中的这种行为,或者我必须将它们连接到IIS?

When I attach VS2008 to any process (most likely Nunit.exe or something similar) I get one Cassini process per website/application in the solution. Is there a quick way to get rid of this behaviour in VS or do I have to connect them to the IIS?

推荐答案

I认为您想为每个网站项目将调试时始终启动属性设置为 false。只需单击解决方案资源管理器中的项目,单击F4,它是列表中的第一个属性。

I think what you want to do is set the "Always start when debugging" property to "false" for each of your website projects. Just click the project in the solution explorer, hit F4, and it's the first property in the list.

此属性很烦人,因为即使将调试器附加到IIS(也就是说,您甚至都没有构建解决方案),小型服务器会自动启动。

This property is annoying because even when you attach a debugger to IIS (i.e. you're not even building the solution), the little servers start automatically.

这篇关于为什么进入调试模式时,VS2008会为每个网站/应用程序生成一个Cassini?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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