Library Compatibility between C # .NET and C # Mono

I wanted to try C # for general-purpose programming (and not for web development). I program in Windows, but I would like to avoid coding specifically for Windows (.NET), because I want to leave this option open for future migration to Linux.

  • Are there any specific C # .NET libraries that will not work in C # Mono for general purpose use (not interested in Windows Forms, Silverlight, etc.)?

  • Is there any internet of things / functions connection that provides a list that works in C # .NET will not work in C # Mono or vice versa? I did not find anything in google as such.

Note: I'm interested in specific answers, not opinions about which is better or worse (thanks!)

+4
source share
2 answers
  • It is possible that the CLR assembly (even as a DLL, as indicated in the comments) should be read by Mono if it does not have dependencies that are not in Mono, because ...
  • ... not every piece of code that compiles for .NET will be compiled for Mono, since in .NET (not strictly part of C #) there are many features of Windows that are not implemented (WPF, ASP.NET async) or not at all make sense on Linux (COM is one such example, I think).

Fortunately, there is a list of .NET features implemented in Mono . Moreover, it looks like they are an application that tells you a priori whether your code uses anything that is not implemented in Mono (but I have never tried it).

+6

xamarin ( Pro , VS-), Portable Class Library, xamarin ( ), visual studio , .

http://docs.xamarin.com/guides/cross-platform/application_fundamentals/pcl/introduction_to_portable_class_libraries/

-, xamarin PCL, .

+4

Source: https://habr.com/ru/post/1532192/


All Articles