Visual studio (MAC) Console Application

17,477

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.

Share:
17,477
M. Pilarczyk
Author by

M. Pilarczyk

Updated on June 22, 2022

Comments

  • M. Pilarczyk
    M. Pilarczyk about 2 years

    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.

  • M. Pilarczyk
    M. Pilarczyk over 7 years
    Thank you very much. Now it works.
  • user1703401
    user1703401 over 6 years
  • olisteadman
    olisteadman over 5 years
    Wow, so glad I found this answer. Thanks Lex Li. Except in my case it was unticking that box, which allowed VS console to start showing me the expected output. The box had been ticket by default and seemed to be stopping the console from exhibiting any of the expected behaviour.
  • kintela
    kintela almost 5 years
    In my console application when I execute the console.write ("Enter value") the text appears in the output panel but I can not put any value because the next instruction is executed: int firstAltitude=int.Parse(Console.readLine()) and crash with null value