There's no need to place P/Invokes in a separate assembly. There's no
benefit to it. As was said before, just use the windows name for each
library in your code and on non-windows platforms include the .config
file with the dllmap sections in it.

Alan.

On Sat, Apr 24, 2010 at 2:35 PM, Andreas Färber <andreas.faer...@web.de> wrote:
> Hi,
>
> Am 23.04.2010 um 15:20 schrieb Dimitar Dobrev:
>
>> I am trying to use DllMap on Windows. I specified a <dllmap /> element
>> under <configuration /> in MyApp.exe.config but the .NET Framework 2.0
>> throws a ConfigurationErrorsException: "Configuration system failed to
>> initialize" <- "Unrecognized configuration section dllmap.". I do
>> not want
>> to use the config file of Mono for the purpose. In this case, is it
>> at all
>> possible to use DllMap and if so, how?
>
> Place the p/invokes in a separate .dll and create a .dll.config file
> with the dllmap. .NET used to care only about the .exe.config file.
>
> Andreas
>
> _______________________________________________
> Mono-list maillist  -  mono-l...@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to