调试我的c#客户端和asp.net服务器之间的交互时,调试很棒.我可以直接进入服务器调用并退出.但是,有时我需要将调试集中在没有asp.net项目的独立可执行文件上.
我的麻烦在于,在将启动项目设置为除asp.net项目之外的其他项目之后,不会阻止asp.net项目在开发服务器(和系统托盘)中启动.它本身似乎不是“调试”,但是当我不想要它时它正在运行并耗尽资源.
我检查并重新检查了启动项目设置.他们坚定地处于“关闭”状态.有关为什么会发生这种情况和/或如何预防这种情况的任何想法?还有其他人经历过这个吗?
Solution Notes: Chalk this one up to the “oh that’s where that is!” phenomenon in Visual Studio. This setting isn’t on the ASP.NET project properties page (right-click on project in solution explorer and choose “properties”),and isn’t on the startup projects UI. Instead it is on the “regular” properties page when the project is selected in the solution explorer. i.e. ensure the properties page is visible (View->Properties Window) and then click on the ASP.NET project in solution explorer. The top option is “Always Start when Debugging” which,when set to false,solved the problem.
解决方法
>单击Solution explorer中的ASP.net项目.>在属性窗口中将“调试时始终启动”设置为false