Fix ScopedApplicationShell registration

This commit is contained in:
2024-08-22 15:05:15 +02:00
parent 03d41f6683
commit 98b189e595
2 changed files with 2 additions and 2 deletions
@@ -56,7 +56,7 @@ public static class MauiAppBuilderExtensions
public static MauiAppBuilder WithNavigation(this MauiAppBuilder appBuilder)
{
appBuilder.ThrowIfNull();
appBuilder.Services.AddScoped<Shell, ScopedApplicationShell>();
appBuilder.Services.AddScoped<Shell, ScopedApplicationShell>(sp => new ScopedApplicationShell(sp));
appBuilder.Services.AddScoped<INavigationService, NavigationService>();
return appBuilder;
@@ -20,7 +20,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<Version>0.2.0</Version>
<Version>0.2.1</Version>
<Authors>Alexandru Macocian</Authors>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>