Making a C#/Winform application cross-platform - should I use AIR, Mono, or something else?

前端 未结 9 1918
旧巷少年郎
旧巷少年郎 2021-01-05 14:31

I have an app that I\'ve written in C#/WinForms (my little app). To make it cross-platform, I\'m thinking of redoing it in Adobe AIR. Are there any arguments in favor of Win

相关标签:
9条回答
  • 2021-01-05 15:31

    Well I think the only way to for cross-platform reliably with C# is Microsoft Silverlight, but is not really WinForms, and browser-based. Other than that, yes Mono is a chance.

    0 讨论(0)
  • 2021-01-05 15:32

    I'm thinking of redoing it in Adobe AIR

    Not having spent much time with AIR, my personal opinion is that it is best for bringing a webapp to the desktop and provide a shell to it or run your existing flash/flex project on the desktop.

    Btw, if you don't know ActionScript, I mean its details, quirks, etc, don't forget to factor in the time it will take googling for answers.

    Are there any arguments in favor of WinForms as a cross-platform app? Is there a cross-platform future for Winforms (e.g., Mono, etc.)?

    It's always hard to predict what will happen, but there is at least one project (Plastic SCM) I know of which uses Mono Winforms on Win, Mac and Linux, so it is certainly doable. However, they say they built most of their controls from the ground up (and claim they want to release them as open source, but not sure if or when), so you will need to put in some work to make things look "pretty".

    I played with Winforms on non-windows platforms and unfortunately, it isn't exactly "mature" (especially on Mac). So what you get out of the box may or may not be sufficient for your needs.

    If you decide a desktop app is not the best way to provide a cross-platform solution, you can always take your business logic written in C# and create either a full-blown webapp with ASP.NET or go with Silverlight, so many other options exist with C#.

    0 讨论(0)
  • 2021-01-05 15:34

    WinForms are fully supported by Mono, so they are cross-platform.

    0 讨论(0)
提交回复
热议问题