Tuesday, May 26, 2009

Using Gtk-Sharp in VS2008 - .DLL Path & Assembly Reference Issues

Get the .msi windows installer from the Mono project page:
http://www.mono-project.com/Gtk-Sharp_Installer_for_.NET_Framework

After running the installer, I found that it incorrectly appended the system Path variable, forgetting to add a trailing '\', resulting in VS2008 failing to find .dll's, and throwing a DllNotFoundException [Unable to load DLL 'libglib-2.0-0.dll'].

After fixing this, you're good to go.

Just remember to add references to the following assemblies

glib-sharp
atk-sharp
gtk-sharp

in your project.


Some useful links on the subject:

http://www.ondotnet.com/pub/a/dotnet/2004/08/09/gtk_mono.htm?page=last&x-order=date

No comments:

Post a Comment

comment: