如何在Visual Studio 2008中运行开发Web服务器(Cassini)?

问题描述:

我使用Visual Studio 2008来开发ASP.NET应用程序。目前我正在IIS上运行调试。我想切换到开发Web服务器(Cassini)进行调试,以便我可以使用编辑和继续的功能。我不是的原因是因为开发Web服务器只有在您处于调试模式时启动。有没有办法保持它一直运行,只要Visual Studio附加到现有的服务器进程像IIS一样?

I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running on IIS. I would like to switch to the development web server (Cassini) for debugging, so that I can use features like edit and continue. The reason that I'm not, is because the development web server only starts up when you are in debug mode. Is there any way to keep it running all the time, and just have Visual Studio attach to the existing server process like it does with IIS?

您还可以从命令行启动您的Cassini服务器,这需要整个调试工作中的痛苦。

You can also start your cassini server from the command line which takes alot of pain out of the whole "debug" effort...

查看一个好的这里介绍如何做到这一点: https ://thoughtjelly.wordpress.com/2009/05/13/launch-cassini-from-the-command-line/

Check out a good snippet here on how to do this: https://thoughtjelly.wordpress.com/2009/05/13/launch-cassini-from-the-command-line/