diff --git a/src/Mobile/MauiProgram.cs b/src/Mobile/MauiProgram.cs index 5e70769..b66d3b8 100644 --- a/src/Mobile/MauiProgram.cs +++ b/src/Mobile/MauiProgram.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Components.WebView.Maui; -using MonkeyCache.FileStore; +using MonkeyCache.FileStore; namespace Microsoft.NetConf2021.Maui; @@ -9,7 +8,6 @@ public static class MauiProgram { var builder = MauiApp.CreateBuilder(); builder - .RegisterBlazorMauiWebView() .UseMauiApp() .ConfigureEssentials() .ConfigureServices() diff --git a/src/Mobile/Pages/DiscoverPage.xaml b/src/Mobile/Pages/DiscoverPage.xaml index aad0eb1..5864ef7 100644 --- a/src/Mobile/Pages/DiscoverPage.xaml +++ b/src/Mobile/Pages/DiscoverPage.xaml @@ -30,7 +30,7 @@ IsGrouped="True"> diff --git a/src/Mobile/Services/ServicesExtensions.cs b/src/Mobile/Services/ServicesExtensions.cs index 07ef47e..b9d12c6 100644 --- a/src/Mobile/Services/ServicesExtensions.cs +++ b/src/Mobile/Services/ServicesExtensions.cs @@ -6,7 +6,7 @@ public static class ServicesExtensions { public static MauiAppBuilder ConfigureServices(this MauiAppBuilder builder) { - builder.Services.AddBlazorWebView(); + builder.Services.AddMauiBlazorWebView(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); diff --git a/src/MobileBlazor/mauiapp/MauiProgram.cs b/src/MobileBlazor/mauiapp/MauiProgram.cs index 46a10dc..5bf77f8 100644 --- a/src/MobileBlazor/mauiapp/MauiProgram.cs +++ b/src/MobileBlazor/mauiapp/MauiProgram.cs @@ -18,10 +18,9 @@ public static class MauiProgram { var builder = MauiApp.CreateBuilder(); builder - .RegisterBlazorMauiWebView() .UseMauiApp(); - builder.Services.AddBlazorWebView(); + builder.Services.AddMauiBlazorWebView(); builder.Services.AddHttpClient(client => { client.BaseAddress = new Uri(APIUrl);