Question
I've been exploring Tizen.NET Preview and appreciate its rapid maturation, especially with .NET Standard 2 support. As an F# enthusiast, I notice that while Xamarin Forms templates for iOS and Android support both C# and F#, Tizen currently only provides C# templates.
I've experimented with using F# .NET Standard Library, but encountered limitations with Type Providers which aren't supported in .NET Standard Library. The attached image demonstrates the power of JsonProvider (a Type Provider) which generates strongly typed data from a URL.
Could the Tizen team provide an F# app template to better support functional programming development?
Answer
Problem Understanding
The user wants to develop Tizen applications using F# but faces two main challenges:
- Lack of official F# project templates in Tizen.NET
- Type Provider limitations in .NET Standard Library
Solution Methods
-
Using F# PCL Profile7:
- Allows referencing Type Providers in library projects
- Requires exposing concrete types for consumption by C# projects
-
Internet Privilege Configuration:
- Essential for network operations in Tizen applications
- Add to tizen-manifest.xml:
<privileges> <privilege>http://tizen.org/privilege/internet</privilege> </privileges>
-
Sample Reference:
- Explore F# implementation examples: FSharpSamples GitHub Repository
Additional Tips
- Currently no official notice/documentation exists regarding F# template support in Tizen.NET
- Similar issues have been reported in Xamarin Android/Xamarin Forms (Bug #59986)
- Monitor official channels for future F# support updates