dotnet / MobileBlazorBindings

Experimental Mobile Blazor Bindings - Build native and hybrid mobile apps with Blazor
MIT License
1.2k stars 168 forks source link

Blazor Hybrid App - Windows #402

Closed bomneris closed 2 years ago

bomneris commented 2 years ago

Hello, sorry if I am repeating an issue or if this is something I missed but after I install default Hybrid add from template "dotnet new blazorhybrid -o FirstBlazorHybridApp" and try to run windows project I get this errror image

I cant find any details why am I getting this maybe someone could help?

TheCakeMonster commented 2 years ago

I've been having this problem too, but @Eilon managed to point me in the right direction to fix it.

An upgrade to Microsoft Edge last week is the root cause. The fix is to add a PackageReference to Microsoft.Web.WebView2 version 1.0.961.33 to your Windows UI project. Use of this later version of the WebView2 adapter resolves the failure.

Related to https://github.com/MicrosoftEdge/WebView2Feedback/issues/1714

bomneris commented 2 years ago

@TheCakeMonster Works like a charm!