Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabulous-dev/fsharp.mobile.templates
Mobile templates for .NET 8.0 / F# 8.0
https://github.com/fabulous-dev/fsharp.mobile.templates
android catalyst dotnet fsharp ios macos maui xamarin xamarin-forms
Last synced: 2 months ago
JSON representation
Mobile templates for .NET 8.0 / F# 8.0
- Host: GitHub
- URL: https://github.com/fabulous-dev/fsharp.mobile.templates
- Owner: fabulous-dev
- Created: 2022-01-26T11:12:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T11:12:32.000Z (about 1 year ago)
- Last Synced: 2024-05-22T09:06:44.610Z (8 months ago)
- Topics: android, catalyst, dotnet, fsharp, ios, macos, maui, xamarin, xamarin-forms
- Language: F#
- Homepage:
- Size: 1.59 MB
- Stars: 99
- Watchers: 10
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# FSharp.Mobile.Templates
In this repository, you can find all the templates for creating mobile and desktop apps using .NET 8.0 and F# 8.0.
Please note that those templates are "plain" F# templates, no additional dependencies. If you are interested in the Fabulous templates you can use:
- [Fabulous.XamarinForms templates](https://github.com/fabulous-dev/Fabulous.XamarinForms)
- [Fabulous.MauiControls templates](https://github.com/fabulous-dev/Fabulous.MauiControls)
- [Fabulous.Avalonia templates](https://github.com/fabulous-dev/Fabulous.Avalonia)### Prerequisites
In order to build and run the Android and iOS projects, you need to install the corresponding workloads
```
dotnet workload install android
dotnet workload install ios
dotnet workload install maccatalyst
dotnet workload install maui
```### Available templates
- Android
- iOS
- Mac Catalyst
- Maui (Android, iOS, Mac Catalyst, Windows, Tizen)### Install
```
$ dotnet new -i FSharp.Mobile.Templates
```### How to use
After installation, several templates will be added:
```
$ dotnet newTemplate Name Short Name Language Tags
---------------------------- ------------------- -------- -------------
F# Android Application android-fsharp F# FSharp.Mobile
F# iOS Application ios-fsharp F# FSharp.Mobile
F# Maui Application maui-fsharp F# FSharp.Mobile
F# Mac Catalyst Application maccatalyst-fsharp F# FSharp.Mobile
```To create a project, use `dotnet new`:
```
$ mkdir TestApp
$ cd TestApp
$ dotnet new android-fsharp
```After creating the application, you can build it with `dotnet build`:
```
$ dotnet build -c Release
```### Build
To build and test the templates locally:
```
$ dotnet pack -c Release
$ dotnet new -i .\bin\Release\FSharp.Mobile.Templates.8.0.0.nupkg
```### Acknowledgements
Thanks [@Dolfik1](https://github.com/Dolfik1) for the blank Android template.
Thanks [@edgarfgp](https://github.com/edgarfgp) for the blank iOS template.