Visual studio (MAC) Console Application [duplicate]

半腔热情 提交于 2020-01-24 03:26:08

问题


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.


回答1:


By default VS for Mac uses Application Output panel to simulate the 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.



来源:https://stackoverflow.com/questions/40690871/visual-studio-mac-console-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!