[Mono-list] DDllImport .config file does not work
David Abrames
abramesd at kmbs.konicaminolta.us
Tue Sep 19 16:26:02 EDT 2006
Hello,
I have created a library that wraps an API that has a Windows.DLL and Linux
Shared Object. According to the "Interop with Native Libraries" I can use a
per-assembly .config file to map the Windows DLL name to the Linux Shared
Object name. However I can't get it to work.
When I run my application I get a Dll Not Found Exception on the Windows
DLL. The name of my wrapper library is MyAPILib.dll and the .config file is
called MyAPILib.dll.config.
I also tried MyAPILib.config but that does not work either.
This is what the .config file contains:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<dllmap dll="KeyWin32.dll" target="libKeyAPI.so.1" />
</configuration>
I have verified that libKeyAPI.so.1 is installed correctly and when I change
my wrapper library to load it directly it works as expected.
David Abrames
More information about the Mono-list
mailing list