سؤال

So I'm trying to run just a simple "Hello World" program on Microsoft Visual Studio Express 2013, but the command prompt flashes for an instant before disappearing whenever I 'Start Debugging'. I Googled a bit, and found that "Run Without Debugging" is supposed to solve that issue by prompting the user to press a key before it exits. However, nothing at all changes when I Run Without Debugging.

I can't seem to find anything online about why this isn't working.

هل كانت مفيدة؟

المحلول

Add this to your code.

Console.ReadLine();

or

Console.ReadKey();

These code preventing your program to end.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top