如何导出或执行一个控制台应用程序形式的项目 [英] how to export or execute a console application form project

查看:118
本文介绍了如何导出或执行一个控制台应用程序形式的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何导出或执行一个控制台应用程序形式的项目,或者找个地方像我的控制台应用程序的.exe文件。我问这个的原因是没有使用Visual Studio调试运行我的项目(​​C#)。 。请不要减少我的问题我是一个初学者,我不能参加,因为停课

how to export or execute a console application form project, or find somewhere something like .exe file of my console application. the reason i ask this is to run my project (C#) without using of Visual Studio debugging. please do not decrease my question I'm a beginner and I cant attend classes because of suspension.

编辑:我发现它\bin\Debug但它关闭,我不能看......有没有办法以某种方式暂停答案?

edit: i found it \bin\Debug but it closes and i cant read... is there a way to suspend the answer somehow?

推荐答案

Visual Studio中把exe文件的文件夹中< ProjectDirectory> \bin\Debug

Visual Studio puts the exe file in the folder <ProjectDirectory>\bin\Debug

更新:
。如果你的控制台应用程序立即关闭后,您双击用鼠标点击它,在命令提示符下启动它或者把代码如下你的主要方法结束图所示:

Update: If you the console application closes immediately after you double clicked it with your mouse, start it from the command prompt or put code as shown below at the end of your main method:

Console.WriteLine("Hit Enter to quit");
Console.ReadLine();

这篇关于如何导出或执行一个控制台应用程序形式的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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