Web应用程序的调试控制台应用程序中 [英] Debug Console Application Inside of a Web Application

查看:119
本文介绍了Web应用程序的调试控制台应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来调试(.NET C#)控制台一个Web应用程序项目内的应用程序?我希望能有快速测试我的web应用程序内的控制台应用程序,而无需使用单独的解决方案。这使我快速测试我的很多服务,而无需创建一个网页。

Is there a way to debug a (.NET c#) console application inside of a web application project? I want to be able to have a console application inside my web app for quick testing without having to use a separate solution. This allows me to quickly test a lot of my services without having to create a web page.

它让我补充控制台应用程序没有任何问题。我可以将它设置为statup项目虽然即使我用F5,实际上它并不重建控制台应用程序运行它。我必须右键单击该项目,并说重建。还没有一个断点被击中,我可以不重视这个过程无论是。

It allows me to add the console app without any problems. I can run it as well by setting it as the statup project although even though I use F5, it doesn't actually rebuild the console app. I have to right click on the project and say rebuild. Also none of the breakpoints get hit and I can't attach to the process either.

我想这可能是一定的局限性,如果它在Web项目中存在,但如果有谁知道一个解决办法,那将是巨大的。

I'm thinking this is probably some limitation if it being in a web project, but if anyone knows a workaround, that would be great.

推荐答案

检查配置管理器(菜单构建/配置管理器),看看是否控制台应用程序项目在特定的配置(发布,调试等检查版本)。

Check in Configuration Manager (menu Build/Configuration Manager) and see if the console app project is checked for build in that particular configuration (Release, Debug, etc.).

这篇关于Web应用程序的调试控制台应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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