2 .\" mono-config configuration page.
5 .\" Miguel de Icaza (miguel@gnu.org)
6 .\" Paolo Molaro (lupus@ximian.com)
10 mono-config \- Mono runtime file format configuration
12 The Mono runtime will load configuration data from the
13 installation prefix /etc/mono/config file, the ~/.mono/config or from
14 the file pointed by the MONO_CONFIG environment variable.
16 For each assembly loaded a config file with the name:
17 /path/to/the/assembly.exe.config is loaded, too.
19 This file controls the behavior of the runtime.
21 The file contains an XML-like file with various sections, all of them
24 section (It actually uses GMarkup
26 .SH <dllmap> directive
27 You use the dllmap directive to map shared libraries referenced by
28 P/Invoke in your assemblies to a different shared library.
30 This is typically used to map Windows libraries to Unix library names.
33 element takes two attributes:
36 This should be the same string used in the DllImport attribute
39 This should be the name of the library where the function can be found:
40 this name should be suitable for use with the platform native shared library
41 loading routines (dlopen etc.), so you may want to check the manpages for that, too.
42 .SH <dllentry> directive
43 This directive can be used to map a specific dll/function pair to a different
44 library and also a different function name. It should appear inside a
46 element with only the dll attribute specified.
50 element takes 3 attributes:
53 This is the target library, where the function can be found.
56 This is the name of the fuction as it appears in the metadata: it is the name
57 of the P/Invoke method.
60 This is the name of the function to lookup instead of the name specified in the
63 The following example maps references to the `cygwin1.dll' shared
64 library to the `libc.so.6' file.
67 <dllmap dll="cygwin1.dll" target="libc.so.6"/>
71 This one maps the following C# method:
74 static extern void somefunction ();
83 <dllentry dll="libdifferent.so" name="somefunction" target="differentfunction" />
89 .BR mono(1), monodis(1), mint(1)