When this page is relevant
Find missing registrations and implementation mismatches at compile time instead of learning about them from runtime activation exceptions.
Problem guide
These diagnostics focus on missing registrations, factory paths, keyed lookups, and incompatible implementation types.
When this page is relevant
Find missing registrations and implementation mismatches at compile time instead of learning about them from runtime activation exceptions.
Recommended install command
dotnet add package DependencyInjection.Lifetime.Analyzers --version 2.2.2
Relevant diagnostics
DI015
registered services with direct or transitive constructor/factory dependencies that are not registered (including keyed and open-generic paths).
DI013
invalid `typeof` service/implementation pairs that compile but fail at runtime.