How to write programs in C# .NET, to run them on Linux/Wine/Mono?

前端 未结 5 886
攒了一身酷
攒了一身酷 2020-12-08 08:02

In this particular case I need to run .complicated NET application for Linux. By complicated i mean - that project was developed for 3 years and i don\'t wa

5条回答
  •  时光取名叫无心
    2020-12-08 08:42

    In this post i shortened and combined all information i learned from others in this thread.

    1. Open source impementation of .NET for Linux is called Mono.

    2. Compatibility is well documented (see links below). Mono supports LINQ, threading and some other complicated features.

    3. It even supports InteropServices. Its possible to use DllImport on linux library (!), like libc.so for example.

    4. Mono can support Android and iOS (they are Linux based, right?)

    5. There is a tool for Mono compatibility analysis called MoMA (Mono Migration Analyzer)

    The Mono Migration Analyzer (MoMA) tool helps you identify issues you may have when porting your .Net application to Mono. It helps pinpoint platform specific calls (P/Invoke) and areas that are not yet supported by the Mono project.

    Useful links:

    Mono - home page

    Mono - page with documentation

    Mono - compatibility page

    MoMA - Mono Migration Analysis page

提交回复
热议问题