[Mono-list] DLLMapping for ASP.NET based projects

R. Tyler Ballance tyler at monkeypox.org
Thu Aug 30 01:58:20 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Aug 29, 2007, at 7:08 AM, Amc Gmail wrote:

> in our case:
> 1. we have api.dll which doing some p/invoke from our libapi.so
>
> 2. in api.cs source code DllImport look like this:
>         [DllImport("api")]
>         private extern static int fnc(ref IntPtr io_ptr);
>
> 3. in web-site/bin i have api.dll and api.dll.config which is:
>
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
>     <!--
>         to debug under xsp:      target="../build/libapi.so.1.0.1"
>         to run under mod_mono:   target="/path/to/our/lib/libapi.so. 
> 1.0.1"
>         to use /usr/lib default: target="api"
>     -->
>    <dllmap dll="api" target="/path/to/our/lib/libapi.so.1.0.1" />
> </configuration>
>
> as you can see i am not changing mono standard dll mappings which you
> may want to, but hope my sample would help somehow.
> good luck :)
>

Yeah, tried this and it still doesn't work :/

My config is:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
         <dllmap target="./bin/libsqlite3.dylib" dll="sqlite3"/>
</configuration>


Where ./bin/libsqlite3.dylib is in my xsproot directory's bin directory.

Still no dice :-/


Cheers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFG1lx8A2GmJ0VpG78RAl9OAJ0c/O2OVeBepzl2Y58s13lYSCdFFQCghwuv
ZExnR9IBpb5Mq5e9GVNGtVk=
=CeJL
-----END PGP SIGNATURE-----


More information about the Mono-list mailing list