FSharp.Maui.WinUICompat
Precompiled Microsoft.UI.Xaml.Application
compatible with the F# MAUI template.
How to use
- Add the
FSharp.Maui.WinUICompat
NuGet package to your F# MAUI project under theWindows
ItemGroup
<ItemGroup Condition="$(TargetPlatformIdentifier) == 'windows'">
(...)
<PackageReference Include="FSharp.Maui.WinUICompat" Version="1.0.0" />
</ItemGroup>
- In the file
Platforms\Windows\App.fs
, change the inherited class toFSharp.Maui.WinUICompat.App
type App() =
- inherit MauiWinUIApplication()
+ inherit FSharp.Maui.WinUICompat.App()