如何在Visual Studio输出窗口中运行控制台应用程序,而不是打开新的命令提示符? [英] How do you run a console application in the Visual Studio output window, instead of opening a new command prompt?

查看:393
本文介绍了如何在Visual Studio输出窗口中运行控制台应用程序,而不是打开新的命令提示符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2008中开发一个简单的控制台应用程序,并希望在Visual Studio 2008的输出窗口中运行它,而不是出现一个单独的命令提示符窗口.有办法吗?

I'm developing a simple console application in Visual Studio 2008 and want to run it in the output window inside Visual Studio 2008, instead of having a separate command prompt window come up. Is there a way to do this?

推荐答案

如果在后期构建步骤中运行控制台应用程序,则其输出将进入输出窗口.无法轻松执行此操作是我对VS(任何版本)最大的恐惧.

If you run the console app in the post build step it's output will go to the output window. The inability to do this easily has been on of my biggest peeves with VS (any version)

这篇关于如何在Visual Studio输出窗口中运行控制台应用程序,而不是打开新的命令提示符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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