[Mono-list] Per-Application dll mapping

Paolo Molaro lupus@ximian.com
Sun, 30 Jan 2005 18:57:09 +0100


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

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better