[Mono-devel-list] C# and porting to Linux

Carlos Alberto Cortez calberto.cortez at gmail.com
Wed Dec 29 20:24:28 EST 2004


Hi,

The idea behind both Mono and .Net is to be multi platform. Since that,
you will be able to write an app using .Net and use it in Mono. However,
there are some special things to be noted:

* Paths are commonly a problem (as far as I know), specially when they
are absolute ones (example "C:\" wouldn't be well handled in Linux). The
relative ones are converted (the \ are converted into /, for example).
Since that, it is important to port the sections where you use that kind
of path, or you can try to manage to avoid this kind of absolute paths
(an idea could be to get the paths from config files, for example).

* Some areas in the API in Mono haven't been implemented, and some
others are being developed. Some of them can't be implemented since
there is no equivalence between Windows and Linux worlds (COM
components, for example). However, most of the classes are working
(compatibility with .Net 1.0 and Mono 1.0; support for newer versions
of .Net is being implemented in current svn repository).

* System.Windows.Forms (the GUI) was an incomplete assembly in Mono 1.0;
however, currently a group of hackers is working on  it, and I have seen
a lot of new developed widgets there (there are alternatives today, like
Gtk#, which is a multiplatform GUI library).

Hope it helps,
Carlos.

El mié, 29-12-2004 a las 19:37 -0500, Michael Levin escribió:
> Would it be possible to write an application in C# .NET and later on
> to port, compile or via any other means run it on Linux?
> Basically, is plain MS .NET based C# codebase "compatible" with Mono?
> Will I be able to compile it using Mono?
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list