c# program execution

  • Thread starter Thread starter Junaid Hussain
  • Start date Start date
J

Junaid Hussain

Hi,
I have been developing a game using C#. When I execute the .exe program
file, I get a console/command prompt open up alongside the actual program as
you may know. This console is invaluable for debugging purposes, however I
want to know if there is any way of stopping the console from appearing, so
that in my final version of the game I have just my program running.

Thanks in advance,
Junaid
 
Hello Junaid,

This is because you have created a "Console Application" C# project instead
of a "Windows Application" C# project.
That's why you get the command prompt window.


Emmanuel
 
Hi,
Thanks for the reply. Sorry but im not sure how to use the /w switch at the
command line. At the moment i'm compiling my program using;

csc pool.cs
which results in a pool.exe file. Where do I add the /w switch?

Thanks,
 
Hi,
How can I create a Windows Application. I am compiling my program from the
command prompt by ;
csc pool.cs,

Thanks once again
 
Back
Top