diff --git a/src/MobileBlazor/mauiapp/MauiProgram.cs b/src/MobileBlazor/mauiapp/MauiProgram.cs index 5bf77f8..524fdf4 100644 --- a/src/MobileBlazor/mauiapp/MauiProgram.cs +++ b/src/MobileBlazor/mauiapp/MauiProgram.cs @@ -37,6 +37,10 @@ public static class MauiProgram builder.Services.AddScoped(); builder.Services.AddScoped(sp => sp.GetRequiredService().State); +#if DEBUG + builder.Services.AddBlazorWebViewDeveloperTools(); +#endif + return builder.Build(); } } diff --git a/src/MobileBlazor/mauiapp/Platforms/Windows/App.xaml.cs b/src/MobileBlazor/mauiapp/Platforms/Windows/App.xaml.cs index 0e49381..804155d 100644 --- a/src/MobileBlazor/mauiapp/Platforms/Windows/App.xaml.cs +++ b/src/MobileBlazor/mauiapp/Platforms/Windows/App.xaml.cs @@ -25,6 +25,6 @@ public partial class App : MauiWinUIApplication { base.OnLaunched(args); - Microsoft.Maui.Essentials.Platform.OnLaunched(args); + Microsoft.Maui.ApplicationModel.Platform.OnLaunched(args); } }