[Mono-list] Per-Application dll mapping

Thomas Zoechling thomas.zoechling@gmx.at
Sun, 30 Jan 2005 19:21:40 +0100


Paolo Molaro wrote:

>On 01/30/05 Thomas Zoechling wrote:
>  
>
>>I have a small Application that uses sqlite. Can i configure the exe 
>>that it uses a local copy of sqlite-3.x.x.so, with an app.config file?
>>Because i want to keep the installation easy and dont want the user to 
>>have sqlite-devel installed.
>>
>>What i tried already in the config file:
>>
>><configuration>
>>     <dllmap dll="sqlite" target="sqlite-3.0.8.so" />
>></configuration>
>>    
>>
>
>Are you using sqlite directly (using DllImport in you assembly)
>or are you using the Mono.Data.SqliteClient.dll assembly?
>In the first case it should work, if it doesn't set the
>env vars:
>	MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll"
>and check the output.
>In the second case, until we provide a config with the assembly,
>you can use the same config file as the global config, by
>running mono with:
>	mono --config sqlite.config yourapp.exe ...
>
>lupus
>
>  
>
I am using

Mono.Data.SqliteClient.dll

But i am using the svn code, compiled to a dll on a mono 1.0.5 system
I compiled the whole Mono.Data.Sqlite directory to a single dll which seems to work.
Then i compiled my app with mcs myapp -r:System.Data, Sqlite.dll which also seems to work.
But i get an dll not found exception if the sqlite devel packages are not installed.
So i tried to map the .so file with the config above and called my app with mono -config:myapp.config 
without luck:(