I have several web application projects in one solution. When I start debugging one of those web applications I noticed that the ASP.NET Development Server starts for all web applications in my solution. How can I determine to just one ASP.NET Development Server to be started? Is this even possible?
我在一个解决方案中有几个web应用程序项目。当我开始调试其中一个web应用程序时,我注意到ASP。NET开发服务器为我的解决方案中的所有web应用程序启动。我怎样才能确定只有一个ASP。要启动NET开发服务器吗?这是可能吗?
I don't want to have my system tray filled with icons of all my web applications.
我不想让我的系统托盘装满我所有的web应用程序的图标。
Thanks!
谢谢!
Duplicate: Why do VS2008 spawn one Cassini for each web-site/application when going into debug mode?
复制:当进入调试模式时,为什么VS2008会为每个网站/应用程序生成一个卡西尼?
2 个解决方案
#1
3
This might work for you, I have a similar issue since there are several web remoting projects in my solution. What I did was set up virtual directories for each in IIS then just right-click the each project and select properties. On the Web tab I then set the server to use when debugging to IIS. This causes Visual Studio to use the single instance of IIS instead of opening a dozen separate web development servers for each project. When you debug, attach to w3wp.exe processes.
这可能对您有用,我有一个类似的问题,因为在我的解决方案中有几个web remoting项目。我所做的就是为IIS中的每个创建虚拟目录,然后右键单击每个项目并选择properties。在Web选项卡上,我设置服务器在调试IIS时使用。这导致Visual Studio使用IIS的单个实例,而不是为每个项目打开一打独立的web开发服务器。调试时,请附加到w3wp。exe进程。
#2
0
As far as I am aware you can't stop this behaviour and is by design.
据我所知,你不能阻止这种行为,这是故意的。
This because of the way that VS attaches its debugger to target processes. i.e. you couldn't have two instances of VS attaching to the same process. Hence multiple instances of the cassini web server, one for each VS session.
这是因为VS将其调试器附加到目标进程的方式。也就是说,不可能有两个VS实例连接到同一个进程。因此,卡西尼web服务器有多个实例,每个VS会话一个实例。
#1
3
This might work for you, I have a similar issue since there are several web remoting projects in my solution. What I did was set up virtual directories for each in IIS then just right-click the each project and select properties. On the Web tab I then set the server to use when debugging to IIS. This causes Visual Studio to use the single instance of IIS instead of opening a dozen separate web development servers for each project. When you debug, attach to w3wp.exe processes.
这可能对您有用,我有一个类似的问题,因为在我的解决方案中有几个web remoting项目。我所做的就是为IIS中的每个创建虚拟目录,然后右键单击每个项目并选择properties。在Web选项卡上,我设置服务器在调试IIS时使用。这导致Visual Studio使用IIS的单个实例,而不是为每个项目打开一打独立的web开发服务器。调试时,请附加到w3wp。exe进程。
#2
0
As far as I am aware you can't stop this behaviour and is by design.
据我所知,你不能阻止这种行为,这是故意的。
This because of the way that VS attaches its debugger to target processes. i.e. you couldn't have two instances of VS attaching to the same process. Hence multiple instances of the cassini web server, one for each VS session.
这是因为VS将其调试器附加到目标进程的方式。也就是说,不可能有两个VS实例连接到同一个进程。因此,卡西尼web服务器有多个实例,每个VS会话一个实例。