No output window on visual studio C# program execution

diego bernal 5 Reputation points
2023-04-30T01:40:32.2533333+00:00

I just installed visual studio the first time and typed a simple Console.Writeline and there was no output window and no errors.

Developer technologies Visual Studio Other
Developer technologies C#
{count} vote

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-05-01T02:27:20.78+00:00

    that is because when the program exits the windows closes. you can add a deadline() like above, so the program will not exit before you enter. keystroke.

    you can allow config debugging to not close the window.

    Tools->Options->Debugging->Automatically close the console

    0 comments No comments

  2. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-05-01T06:03:32.2666667+00:00

    Hi @diego bernal

    Welcome to Microsoft Q&A! 

    Which version of Visual Studio are you using? 

    You can try to Reset the vs settings by going to Tools > Import and Export settings > Reset all settings

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.