Skip to content

Basic deployment questions

Ken

Asked Sep 12, 2007, 8:16 AM EDT1 answer
Share
LinkedInX

I fairly new to C# and I'm building a console app for a class assignment, How do I get the window to stay up until a key is pressed? It works fine when I run w/o debug but closes immediately when I run with debug or when published to exe. It's an assignment and the teacher will need to see the results. Also since I'm new to C# is publish the best or easiest way to build an exe? 

Thanks,

Ken

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    I am also fairly new to C#. As far as I know Console.ReadLine(); statement will retain the console screen untill you press the Enter key.

    0