Merge pull request #72 from microsoft/danroth27/rc1updates

Updates for RC1
pull/73/head
James Montemagno 2022-04-18 17:05:59 -07:00 committed by GitHub
commit 3804348919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ public static class MauiProgram
builder.Services.AddScoped<ComponentStatePersistenceManager>(); builder.Services.AddScoped<ComponentStatePersistenceManager>();
builder.Services.AddScoped<PersistentComponentState>(sp => sp.GetRequiredService<ComponentStatePersistenceManager>().State); builder.Services.AddScoped<PersistentComponentState>(sp => sp.GetRequiredService<ComponentStatePersistenceManager>().State);
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
#endif
return builder.Build(); return builder.Build();
} }
} }

View File

@ -25,6 +25,6 @@ public partial class App : MauiWinUIApplication
{ {
base.OnLaunched(args); base.OnLaunched(args);
Microsoft.Maui.Essentials.Platform.OnLaunched(args); Microsoft.Maui.ApplicationModel.Platform.OnLaunched(args);
} }
} }