0

Trying to run a GTK GUI test app and get "could not load file or assembly 'gtk-sharp version=2.12.0.0" but i have gtk+-2.0 ver 2.24.10 installed.

how do i work around this please.

Thanks.

ckglobalroaming
  • 267
  • 3
  • 10

2 Answers2

2

First install gtk-sharp using following command

sudo apt-get install gtk-sharp2

0

Try removing the reference assembly and add it again to your project, recompile and run it again and check if runs. If it doesn't work download this gtk-sharp version which is the latest from version 2.12 gtk-sharp-2.12.22 and add the reference assembly from the new installation. This download is for windows only if you are using mac or linux try downloading gtk-sharp from the mono web site which comes with all that you need for development and deployment Mono + GTK. If you are using gtk-sharp on windows you don't need to install the mono framework gtk-sharp should work using pure .net framework.

revobtz
  • 606
  • 10
  • 12