3

GitHub - fabulousfx/net6.0-mobile-fsharp: Mobile templates for .NET 6.0 / F# 6.0

 2 years ago
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.
neoserver,ios ssh client

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: warning (resources can't be used for now, see F# support is broken in Xamarin.Android)
  • Blank iOS: heavy_check_mark
  • Blank Mac Catalyst: heavy_check_mark
  • Xamarin.Forms
    • Android: negative_squared_cross_mark (crash at start up #5)
    • iOS: heavy_check_mark
  • Maui
    • Android: negative_squared_cross_mark (crash at start up #9)
    • iOS: heavy_check_mark
    • Mac Catalyst: heavy_check_mark

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
  • 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

Acknowledgements

Thanks @Dolfik1 for the blank Android template.
Thanks @edgarfgp for the blank iOS template.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK