A quick question that is probably something very simple.
I have a console app that when I run it the console never stays open for long enough for me to see the output. How do I set VS.net so that the console stays open until I close it.
As far as the .net runtime is concerned, when the program finishes execution, it's ok to close the window. You can see the same behavior by writing a short .cmd script, and double-clicking on it in explorer.
Chip H.
____________________________________________________________________ Click here to learn Ways to help with Tsunami Relief If you want to get the best response to a question, please read FAQ222-2244 first
When you're running your app from VS I think you can use CTRL-F5 to rebuild and start the application and that will keep the window open. If you just use F5 to rebuild and start the app then the window will close unless you add the Console.ReadLine() at the end of your code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.