[Mono-devel-list] How to make a SETUP or INSTALLER to DEPLOY finished programs ?

Mads Lindstrøm mads_lindstroem at yahoo.dk
Wed Aug 25 17:00:32 EDT 2004


ons, 2004-08-25 kl. 15:00 skrev Alessandro Torrisi:

> P.S. How can I include in my .exe resources like images or xml files ? Is it 
> possible ? How can I access my resources from inside the .cs file ? This 
> thing is automated in .NET so I don't know how to manipulate them or 
> reference them from the program...

To include a resource in an assembly use the /resource switch to the
compiler (like 'mcs Bar.cs /resource:Foo.xml'). To make use of this
resource in your .cs file do (assumming its a xml file):

XmlDocument xmlDoc = new XmlDocument();

Hope it helps,

Mads Lindstrøm

More information about the Mono-devel-list mailing list