Skip to content
Schemory
Skill

maui-dependency-injection

Guidance for configuring dependency injection in .NET MAUI apps — service registration in MauiProgram.cs, lifetime selection (Singleton / Transient / Scoped), constructor injection, Shell navigation auto-resolution, platform-specific registrations, and testability patterns. USE FOR: "dependency injection", "DI setup", "AddSingleton", "AddTransient", "AddScoped", "service registration", "constructor injection", "IServiceProvider", "MauiProgram DI", "register services", "BindingContext injection". DO NOT USE FOR: data binding (use maui-data-binding), Shell route configuration (use maui-shell-navigation), unit-test mocking frameworks (use standard xUnit and NSubstitute patterns).

Listed from its GitHub repository. Reports from people who tried it will appear here.

Source
dotnet/skills
GitHub stars
6,332
License
MIT

No reports yet

Nobody has written down how maui-dependency-injection works with their agent. Tried it? Say whether it worked, and with which agent and model.

Write the first report