[Gtk-sharp-list] GtkDotNet and dll.config file help

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Feb 7 14:39:30 EST 2009

On Sat, Feb 7, 2009 at 12:58 PM, Hywel Thomas
<hywel at controlspecials.demon.co.uk> wrote:
> I'm using Monodevelop with a reference to GtkDotNet, and getting a 'dll
> not found' exception when it attempts to find libgdk-win32-2.0-0.dll. I
> gather that a dll.config file is required to translate this to

DllMaps: http://www.mono-project.com/Config_DllMap (a Mono-only feature)

> libgdk-x11-2.0.so.0, but I've tried this, placing the dll.config file in
> the same directory as the exe, without success.  I've failed to find any
> references descibing the use of the dll.config file, so any pointers
> would be appreciated.

The dllmap should be in the config file for the thing it's doing
mapping for, e.g. the DllMap for GtkDotNet.dll should in a config file
called GtkDotNet.dll.config.

However, this is all just background. You should not have to write
dllmaps for the GTK# dlls -- they are included and installed when you
install GTK#, i.e. the GAC'd GTK# dlls are all already mapped. Your
issue most likely indicates a broken GTK# installation. How did you
install it?

Michael Hutchinson

More information about the Gtk-sharp-list mailing list