问题描述
也许有些人知道可以使用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|Default
下Run 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)控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!