Thursday, January 21, 2016

GTK#-2.12 Workaround: libgtk-win32-2.0-0.dll Not Found

Introduction

GTK# 2.12 does not run in Windows 7. Project build with GTK# is failed to run in debug mode with System.DllNotFoundException with message stated that libgtk-win32-2.0-0.dll not found.

Causes

This appear to be due to the long Environment Variables - PATH with long path list. 

Solution

Edit the PATH variable in System Properties > Advanced > Environment Variables to move the GTK# Path "C:\Program Files (x86)\GtkSharp\2.12\bin" to the front of all the path string. Restart Xamarin studio and everything should works find.

Reference


Appreciation

Do you like our work? Appreciate if you could help to buy us a cup of coffee. Thank you.