Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

BlazorWebView without index.html (.net 8)

$
0
0

I have a Blazor project on .NET 8 that I want to use in a Maui app.

I added a Maui app to my solution and added a reference to the Blazor project. However, I'm not sure how to set the HostPage property for the BlazorWebView control since in .NET 8, there is no index.html file. Instead, it has been replaced with App.razor.

Additionally, I'm not sure what values to set for the Selector and ComponentType properties since there is no HTML element to replace.

<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html"><BlazorWebView.RootComponents><RootComponent Selector="#app" ComponentType="{x:Type local:Components.Routes}" /></BlazorWebView.RootComponents></BlazorWebView>

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>