Skip to content
edge
4,300 installs on skills.sh

Maui Dependency Injection

Guidance for configuring dependency injection in .NET MAUI apps : service registration in MauiProgram.cs.

Use in my agent
Use Edge to load the skill maui-dependency-injection from dotnet/skills for my task. If Edge is not set up, read getedge.cc/SKILL.md and ask me first.
dotnet/skills
Security state: reviewed

2 static scans, 0 counted findings.

Edge checks it again each time your agent loads it.

SKILL.md2 files · 18.2 KB

From the dotnet public repository. Edge did not write or edit this skill.

What it does

  • 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).
DO

Why dotnet

Open-source .NET platform organisation. Each fact links its public source.

  • Open source platform

    Wikipedia says .NET is free, open source under MIT, with .NET Core 1.0 released June 2016.

    Wikipedia: .NET
  • ASP.NET Core repo

    The aspnetcore repo has 38k+ GitHub stars.

    GitHub repo
  • MAUI repo

    The maui repo has 23k+ GitHub stars.

    GitHub repo

Public sources, checked Oct 26, 2026.

How it works

  1. 1
    Copy

    Try for free gives you one prompt.

  2. 2
    Paste

    Paste it into Claude Code, Codex or Cursor.

  3. 3
    Ask

    Ask for the outcome. Your agent loads Maui Dependency Injection.

Related skills

DO
Maui Shell Navigation
dotnet

Guide for implementing Shell-based navigation in .NET MAUI apps. Covers AppShell setup, visual hierarchy (FlyoutItem, TabBar, Tab, ShellContent), URI-based navigation with GoToAsync, route registration, query parameters,

+325 installs this week
CO
Dependency Injection
codewithmukesh

Dependency injection patterns for .NET 10. Covers service lifetimes, keyed services, the decorator pattern, factory pattern, and common DI pitfalls. Load this skill when registering services, resolving lifetime issues, d

+278 installs this week
SA
Golang Dependency Injection
samber

Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (goo

+394 installs this week
AN
Angular Di
analogjs

DEPRECATED - this skill is unmaintained. Use the official Angular skills at https://github.com/angular/skills instead. Implement dependency injection in Angular v20+ using inject(), injection tokens, and provider configu

SA
Golang Samber Do
samber

Dependency injection in Golang using samber/do — service containers, lifecycle management, scopes, health checks, graceful shutdown, and module organization. Apply when using or adopting samber/do, when the codebase impo

+356 installs this week
GT
Spring Boot Dependency Injection
giuseppe-trisciuoglio

Provides dependency injection patterns for Spring Boot projects, including constructor-first design, optional collaborator handling, bean selection, and wiring validation. Use when creating services and configurations, r

Questions about Maui Dependency Injection

What does Maui Dependency Injection do?

Guidance for configuring dependency injection in .NET MAUI apps : service registration in MauiProgram.cs. Published by dotnet (dotnet/skills).

Is Maui Dependency Injection safe to use?

Edge security state: Reviewed (2 Edge-run static scans, scanned Nov 17, 2026). The Evidence tab shows the scan.

How do I use Maui Dependency Injection in Claude Code, Codex or Cursor?

Click Try for free, pick your agent and follow its one step. Edge is free, with no Edge account.

Give your agent Maui Dependency Injection.

Free. No Edge account.

Use Maui Dependency Injection in your agent

Claude app

Add to Claude

Opens claude.ai in your browser. Add it once, and Edge is in the Claude desktop and phone apps too.
Then click Continue Add Connect and open a new chat.

Already added? Open a new chat in Claude.

ChatGPT

Add to ChatGPT

Opens the Edge plugin in ChatGPT. Click Install plugin, then start a new chat.

Claude Code or Codex

Free · No Edge accountOther agents