fabulous-dev / Fabulous

Declarative UI framework for cross-platform mobile & desktop apps, using MVU and F# functional programming
https://fabulous.dev
Apache License 2.0
1.13k stars 122 forks source link

Question: state of Linux support? #975

Closed njlr closed 1 year ago

njlr commented 1 year ago

I have been trying to create a "hello world" app using Fabulous, but I fear that I have an incompatible set of requirements:

Is there an example of these working together?

TimLariviere commented 1 year ago

Xamarin.Forms doesn't officially run on .NET 6. You could make it work but I wouldn't recommend it, especially if you plan to use any other XF NuGet packages, they would not be compatible.

With this said, the rest of your list should be ok.

Fabulous 1 and Fabulous 2 apps are both running in a .NET Standard 2.0 library. Even though we did not provide the Linux template for v2, you could still use the Linux template from v1 and copy over your Fabulous 2 application.

Here's the GTK template from v1: https://github.com/fsprojects/Fabulous/tree/v1.0/Fabulous.XamarinForms/templates/content/blank/NewApp.Gtk

njlr commented 1 year ago

Xamarin.Forms doesn't officially run on .NET 6

Does this mean I must target an older .NET (Core) or even Mono?

TimLariviere commented 1 year ago

Yes. Xamarin.Forms only runs on Mono. Xamarin as a whole started to run on .NET (Core) 6.0 starting MAUI, and Microsoft has decided against porting Xamarin.Forms to .NET 6.0