Skip to content

Files

Latest commit

3d9e014 · Feb 26, 2025

History

History

Microsoft.Extensions.DependencyInjection

Microsoft.Extensions.DependencyInjection

Microsoft.Extensions.DependencyInjection is combined with a core DI abstraction under Microsoft.Extensions.DependencyInjection.Abstractions that allows for building different kinds of dependency injection containers to retrieve services from that have been registered with different lifetimes.

Documentation can be found at https://learn.microsoft.com/dotnet/core/extensions/dependency-injection.

Contribution Bar

The APIs and functionality are mature, but do get extended occasionally.

Deployment

Microsoft.Extensions.DependencyInjection is not included in the shared framework. The package is deployed as out-of-band (OOB) and needs to be installed into projects directly.

Using other containers with Microsoft.Extensions.DependencyInjection