[Mono-list] Creating an exe from more than one file.

Robert Jordan robertj at gmx.net
Tue Jun 26 09:26:47 EDT 2007

Jacob Rhoden wrote:
> I have been searching all over the mono site on how to do this, right 
> down to reading a Slide show on how the compiler works.. cant find it, 
> so I wonder if anyone can point me anywhere for examples on how to build 
> System.Windows.Forms applications (So i can run on windows .net as well 
> as linux).
> My speciffic example is i have my SystemTrayApp.cs and it reads an 
> icon.ico file. I would like to build both files (or even more than that) 
> into a single exe file. How do I do this. Any help appreciated. (So I 
> guess kind of like making a java jar file)

1. Embed the files with mcs's -resource option (see mcs's man page)

2. Access the resources with Assembly.GetManifestResourceStream
    (see MSDN)


More information about the Mono-list mailing list