[Mono-dev] DllMap default architecture for P/Invoke

2016-01-16 Thread Jason Curl
Hello, I've created a DLL compiled for linux x86-64 and mapping this using P/Invoke. I'd like to know how a [DllImport("mylib")] can be instructed to look for the architecture specific library, and if not found, then a default (probably locally compiled) library for testing. What I've done

Re: [Mono-dev] DllMap default architecture for P/Invoke

2016-01-16 Thread Robert Jordan
On 16.01.2016 14:08, Jason Curl wrote: > > How would I handle this scenario within Mono? > The dllmap machinery does not probe for target dlls. It performs a solely textual mapping. You may want to have different configs with dllmaps for DEBUG and RELEASE builds. Robert