/FSharp.Maui.WinUICompat

A dummy C# library to let MAUI F# template compile for WinUI

Primary LanguageC#Apache License 2.0Apache-2.0

FSharp.Maui.WinUICompat

Precompiled Microsoft.UI.Xaml.Application compatible with the F# MAUI template.

How to use

  1. Add the FSharp.Maui.WinUICompat NuGet package to your F# MAUI project under the Windows ItemGroup
<ItemGroup Condition="$(TargetPlatformIdentifier) == 'windows'">
  (...)
  <PackageReference Include="FSharp.Maui.WinUICompat" Version="1.0.0" />
</ItemGroup>
  1. In the file Platforms\Windows\App.fs, change the inherited class to FSharp.Maui.WinUICompat.App
type App() =
-    inherit MauiWinUIApplication()
+    inherit FSharp.Maui.WinUICompat.App()