GitHub - fabulousfx/net6.0-mobile-fsharp: Mobile templates for .NET 6.0 / F# 6.0
source link: https://github.com/fabulousfx/net6.0-mobile-fsharp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
net6.0-mobile-fsharp
In this repository, you can find all the templates for creating apps on iOS and Android using .NET 6.0 and F# 6.0
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
For net6.0-xamarinforms-fsharp
, you'll also need to go into the file nuget.config
and replace USERNAME
with your GitHub username and TOKEN
with your personal access token.
See https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-with-a-personal-access-token
Available templates
- Blank Android: (resources can't be used for now, see F# support is broken in Xamarin.Android)
- Blank iOS:
- Blank Mac Catalyst:
- Xamarin.Forms
- Android: (crash at start up #5)
- iOS:
- Maui
- Android: (crash at start up #9)
- iOS:
- Mac Catalyst:
Known issues
- Blank Mac Catalyst
- Project has to be run with
dotnet build -t:Run
. IDEs like Rider will otherwise try to debug it as an iOS app
- Project has to be run with
- Maui
- For the moment, it requires an ugly custom import in the fsproj for all
Platforms/**/*
files. I believe we can fix this directly in Maui Sdk and keep it compatible with C# (see #8) - Only tested on macOS M1 with
dotnet build -t:Run -f net6.0-ios
/net6.0-android
/net6.0-maccatalyst
- For the moment, it requires an ugly custom import in the fsproj for all
Acknowledgements
Thanks @Dolfik1 for the blank Android template.
Thanks @edgarfgp for the blank iOS template.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK