pentiminax / WinFormsBlazorWebView

Dépôt pour la création d'une application Blazor Desktop avec C# et .NET 6
https://youtu.be/sZ3FEAQDpXo
1 stars 0 forks source link

Unable to find the required services on AddBlazorWebView #1

Open Xarkam opened 2 years ago

Xarkam commented 2 years ago

Hello, I create this issue for all person using this code repository with latest nuget Microsoft.AspNetCore.Components.WebView.WindowsForms

You need to change the line 18 of Form1.cs serviceCollection.AddBlazorWebView(); as now serviceCollection.AddWindowsFormsBlazorWebView();

Otherwise, you must have this error: image

pentiminax commented 2 years ago

Thank you for the information !