Visual Studio(MAC)控制台应用程序 [英] Visual studio (MAC) Console Application

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

问题描述

也许有些人知道可以使用Visual Studio(预览版).

maybe some of you know, that Visual Studio (Preview) is ready to use.

我有一个简单的问题,也许我做错了,或者工作不正常.

I have simple question, maybe I did something wrong, or it doesn't work properly.

当我开始调试控制台应用程序时,不想让我从键盘读取名称.

When I start to debug Console Application doesn't want to let me read name from keyboard.

string name = Console.ReadLine();
Console.WriteLine(name);

有人可以帮助我吗?我想看看它如何正常工作.

Can someone help me? I'd like to see how it works correctly.

推荐答案

默认情况下,Mac的VS使用Application Output面板来模拟控制台.

By default VS for Mac uses Application Output panel to simulate the console.

在这种情况下,应使用外部控制台,您应打开Project Options并选中Run|Configurations|DefaultRun on external console之前的框.

In your case, an external console should be used, which you should open Project Options and check the box before Run on external console under Run|Configurations|Default.

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

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