In other words, if you want portable code then Don't. P/Invoke. Ever. (Unless you know *exactly* what you are doing and know *exactly* how to make it work portably.)
If you have not yet read this, it is an excellent guide to making sure that your code is portable, even managed code: <http://mono-project.com/Guidelines:Application_Portability>. Things like "don't hardcode \ as a path separator" seem obvious in hindsight but can trip you up at first. This is a fairly complete list of common things that are obstacles to running .NET apps on Linux. On Mon, Jul 20, 2009 at 9:50 AM, qzhan15<[email protected]> wrote: > Got it, thanks! > > On Mon, 2009-07-20 at 15:16 +0200, Robert Jordan wrote: >> qzhan15 wrote: >> > I have installed wine, and "libuser32.dll.so" (link to user32.dll.so) is >> > located at /usr/lib/wine, and already configure the ld.so.conf and run >> > ldconfig. then the "EntryPointNotFoundException" disappear but finally >> > aborted during executing the native method. >> >> Mono for Linux cannot consume Wine's shared objects. You may have >> more luck running Mono for Windows under Wine, but this is >> totally unsupported and not recommended. >> >> Robert >> >> _______________________________________________ >> Mono-list maillist - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
