# Getting F# working in MAUI Blazor Desktop app

If you want to read my ramblings about my end goals, check my previous post of [My views on app development](https://crazyivan.hashnode.dev/my-views-on-app-development) 

The idea was to try and get F# working so I can use it to do the logic. Based heavily on  [Bolero](https://fsbolero.io/) but I will use a different paradigm than [Elmish ](https://elmish.github.io/) most likely.  

Step one was to get C# MAUI Blazor working. That involved installing the latest preview of .net6 and Visual Studio 2019 Preview. That also required installing a couple VISX modules to get working correctly.  [info link](https://github.com/dotnet/maui/wiki/Getting-Started)  

Referencing  [Dan's post](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-4/#net-maui-blazor-apps) got me going and I eventually had the windows Blazor working. 

I then added a new F# library project and tried to replace the root component of the C# type with a F# component from the referenced library. Took some work, but I have it working now. I put it up on [GitHub](https://github.com/IvanRainbolt/MauiBlazorApp1) in case it might help any one. 

The sticky part was trying to figure out what is going on with 
```
<b:RootComponent Selector="#app" ComponentType="{x:Type local:Main}" />
```
After many failed builds and some research, I added this line to the MainPage.xaml 
```
xmlns:f="clr-namespace:MauiBlazorApp1.FSharp;assembly=FSharp"
```
and then changed the line to
```
ComponentType="{x:Type f:MyBasicApp }"
``` 

Bob's your uncle. 

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1625520338664/w2Gc3iG-I.png)

