[Mono-dev] Cross Platform on Linux/Windows with Mono.Posix reference on Linux
Alan
alan.mcgovern at gmail.com
Wed Mar 30 12:33:09 UTC 2016
Heya,
If you package Mono.Posix.dll your app *will crash* on different systems.
This binary is platform specific and is not safe to copy between OS's. It
is also matched with a platform specific native binary,
libmonoposixhelper.[dll|dylib|so], which cannot be copied/pasted across
platforms either. If you have a Mono.Posix.dll from one version of mono and
a libmonoposixhelper.[dylib|so|dll] from another mono installation, that
will crash too every time p/invoke signatures change, or other
implementation details change.
It's fine to have a copy of Mono.Posix.dll used purely for compilation
purposes. But at runtime you have to use the system provided one, which
typically means the one provided by the system's mono installation.
Hope that helps!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160330/d063a92d/attachment.html>
More information about the Mono-devel-list
mailing list