Did you create the application using Visual Studio? If so, in the project properties on the tab "Application" there is a parameter "Output Type". If this parameter is set to "Console application", when the program starts, as well as in the form, a command line window will appear. By installing it in the "Windows Application" (the default for Windows Forms projects), this will be done.
EDIT: just looked at your comment on another answer. This option corresponds to the "/ target" switch for the compiler. /target:exe will give you the command line, /target:winexe will just show the form. Hopefully anyway! I'm just going to execute the assembly output from Visual Studio.
source share