I'm trying to build an application using a Blazor Hybrid Webview, which can be run both from a .NET MAUI application as well as a WPF application. All Pages/Components/Routing etc. are located in a Razor class library (the GUI library). I can't get the wwwroot to the contained in the UI library however.
In both WPF and MAUI the BlazorView hostpage needs to be a static file, wwwroot\index.html, which has to be located inside the running application. I don't want to have to copy things like images and styles all the time. They need to be in the UI library.
I tried all methods of including the folder in the running project, like
<ItemGroup>
<Content Include="..\GUI.Blazor\wwwroot\**" CopyToOutputDirectory="Always"/>
</ItemGroup>
And also by directly using the UIs index.html by creating the BlazorWebview like this
<BlazorWebView HostPage="../GUI.Blazor/wwwroot/index.html">
</BlazorWebView>
But with no success, I keep getting an error saying the folder isn't found, or Blazor simply crashes