P/Invoke to dynamically loaded library on Mono

后端 未结 4 850

I\'m writing a cross-platform .NET library that uses some unmanaged code. In the static constructor of my class, the platform is detected and the appropriate unmanaged library

4条回答
  •  清酒与你
    2021-02-02 01:17

    Try running it like this from a terminal:

    export MONO_LOG_LEVEL=debug
    export MONO_LOG_MASK=dll
    mono --debug yourapp.exe
    

    Now every library lookup will be printed to the terminal, so you'll be able to find out what's going wrong.

提交回复
热议问题