Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to prevent the command prompt from opening in windows when launching the game (via double clicking)?

share|improve this question
by dosbox you mean the black window similar to "command prompt", right? since dosbox is name of another application which seems to be completely unrelated to the topic! – Ali.S Aug 8 '12 at 3:01
Yes, by dosbox, I mean the command prompt. Thanks for the clarification. – void_null Aug 8 '12 at 5:06
Have you tried building your application in release mode? – Vaughan Hilts Aug 8 '12 at 15:39

I am assuming you are using Visual Studio 2010.

Right click on your project (not solution), go to the "Application" tab, under "Output type" change that to "Windows Application"

This is what I do when I want to see a command prompt when running an XNA application.

share|improve this answer
Thanks Luis, this did the trick. For those who use MonoDevelop, its equivalent is Executable with GUI – void_null Aug 9 '12 at 1:17
@void_null, Mark as answer :) – Luis Estrada Aug 9 '12 at 13:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.