From 11582f7f0748f13524ccd6a7e80909a784293a6a Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Mon, 18 Apr 2022 10:20:59 -0700 Subject: [PATCH 1/2] Fix RC1 rename --- src/MobileBlazor/mauiapp/MauiProgram.cs | 4 ++++ 1 file changed, 4 insertions(+) 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(); } } From 320ebb77614aa52d5a38a213cfa7da8d2261bff3 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Mon, 18 Apr 2022 10:21:30 -0700 Subject: [PATCH 2/2] Enable browser dev tools in debug builds --- src/MobileBlazor/mauiapp/Platforms/Windows/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }