Get Started
Install the templates
To install the templates for Fabulous for Xamarin.Forms, run the following command:
dotnet new install Fabulous.XamarinForms.Templates
You can check the installed templates on your machine by running the command:
dotnet new list
You should see the installed Fabulous for Xamarin.Forms templates:
Template Name Short Name Language Tags
---------------------- ----------------- -------- ----------------------
Fabulous XF Blank fabulous-xf F# Fabulous/Xamarin.Forms
Fabulous XF VS Windows fabulous-xf-vswin F# Fabulous/Xamarin.Forms
Create a project
To get started, we are going to use the simplest Fabulous for Xamarin.Forms template: Fabulous XF Blank
(or fabulous-xf
in the CLI).
Run the command:
dotnet new fabulous-xf -n GetStartedApp
This will create a new folder called GetStartedApp containing the new project.
In this folder, you'll find a shared project GetStartedApp
as well as 2 other folders GetStartedApp.Android
and GetStartedApp.iOS
containing the head projects that will produce the application for the corresponding platform.
Run a project
To run a project, we recommend you open the solution GetStartedApp.sln
with your favorite IDE.
Once loaded, you'll be able to select which project to run (Android or iOS) along with the emulator or device to run on.
Press the debug button to deploy and run the application.
Last updated