[Mono-dev] MSWindows cmd window

Peter Dennis Bartok peter at novonyx.com
Mon Feb 13 17:11:23 EST 2006


You need to tell the compiler to make a Windows executable, you do that with 
the -target: switch. In your case, try "mcs -target:winexe xxx.cs", or 
short: "mcs /t:winexe xxx.cs"


-----Original Message-----
From: "Jeremy Sheldon" <jeremy_sheldon at hotmail.com>
To: <Mono-devel-list at lists.ximian.com>
Date: 13 February, 2006 15:03
Subject: [Mono-dev] MSWindows cmd window

>I have just started development with Mono and have a question about running
>my programs.
>I did all development on a Gentoo Linux system with mono-,
>monodevelop-0.9-r1, glade-2.6.8, and gtk-sharp-2.8.0.
>Everything seems to be going along great!  My question deals with when I 
>my programs in MSWindows.  I compiled a certain simple program in Linux
>using: mcs program.cs morecode.cs -pkg:glade-sharp-2.0
>The program runs great in Linux.  Similarly, it RUNS fine in MSWindows, but
>always starts up a cmd prompt screen along with it (say, if i double-click
>it on the desktop).  Is this normal?  Is there a way to make it NOT do 
>The program is quite simple and uses the basic techniques found here:
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com

More information about the Mono-devel-list mailing list