An open API service indexing awesome lists of open source software.

https://github.com/fabulous-dev/fsharp.maui.winuicompat

A dummy C# library to let MAUI F# template compile for WinUI
https://github.com/fabulous-dev/fsharp.maui.winuicompat

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

```xml

(...)

```

2. In the file `Platforms\Windows\App.fs`, change the inherited class to `FSharp.Maui.WinUICompat.App`

```diff
type App() =
- inherit MauiWinUIApplication()
+ inherit FSharp.Maui.WinUICompat.App()
```

3. Create the file `Platforms\Windows\Main.fs`, add the following code

```fs
module Program =
[]
[]
let main args =
do FSharp.Maui.WinUICompat.Program.Main(args, typeof)
0
```

Where `YourApp.WinUI.App` is the `App` class defined in step 2