[Mono-list] Developing on Windows, running on Linux

Daniel Hughes trampster at gmail.com
Sat Apr 16 02:22:56 EDT 2011


You write the c# application as per normal, And then just run it on linux
using mono.

However you should keep the following in mind:

Windows.Forms is not installed by default in most linux distros.
Linux as a different line ending to windows. If you use Enviroment.NewLine
you will be safe.
Linux has a different path separator then windows. If you use Path.Combine
then you will be safe.
Don't use PInvoke. As the native libraries will not be present on linux.

Cheers,
Daniel Hughes

On Sat, Apr 16, 2011 at 5:10 PM, Volodia <a867289 at jnxjn.com> wrote:

> I'm new to Mono.
> I want to develop a Windows.Forms application on Windows under Visual
> Studio
> but execute on Linux.
> From the Mono documentation it’s not clear to me:
> 1) Should I reference Mono version of Winforms dlls or Microsoft .NET
> version?
> 2) Should I compile with dmcs or Microsoft csc.exe? What are the
> differences
> between these two compilers?
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Developing-on-Windows-running-on-Linux-tp3453500p3453500.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110416/3c13900d/attachment.html 


More information about the Mono-list mailing list