Search code examples
c#xamarin-studiogtk#dll-reference

Xamarin Studio could not reference .dll file


I'm trying to use gpgme-sharp in Xamarin Studio with GTK#(.NET). Everything is ok, but i get the following error:

Unable to load DLL 'libgpgme-11.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

If I add it as reference(my application target x86 platform and that dll is also x86), I get the following error:

File 'Path\To\File\libgpgme-11.dll' is not a valid .Net Assembly

Can I get some help please? Where should i put this file?


Solution

  • I'll answer my own question, to close this topic. The file was corrupted... All good now!