[Mono-dev] Application Deployment

Kornél Pál kornelpal at gmail.com
Fri Aug 11 14:32:54 EDT 2006


> I'm going with a .bat file for now to launch the app, but I get an ugly
> DOS window in the background.

This is the expected behavior for .bat files as they use cmd.exe.

>Even if I double-click the .exe file and let the .NET Framework load
>the assembly I get an ungly DOS window.

This is because you compile your application as a console application. Use 
/target:winexe

> This isn't to kosher IMHO, as most Windows applications do not exhibit
> this behavior.  Perhaps a .NETFX launcher is the only way to go . . .

I think the easiest thing is to create a shortcut (i.e. .lnk file) that 
executes mono.exe with your .exe file passed as a parameter. This way you 
can use the icon of your .exe file as the icon of the shortcut as well.

Note that however if you distribute your onw copy of mono.exe you can 
compile it as a GUI application (by default it's marked as CUI and closes 
the console for GUI applications) and use any icon you want. You can even 
wire your mail assembly name to it so mono.exe (or whatever name you use) 
will allways load your .exe file.

Kornél 




More information about the Mono-devel-list mailing list