microsoft.extensions.dependencyinjection
Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection. When using NuGet 3.x this package requires at least version 3.4.
Install
dotnet add package microsoft.extensions.dependencyinjection --version 5.0.2
Install-Package microsoft.extensions.dependencyinjection -Version 5.0.2
<PackageReference Include="microsoft.extensions.dependencyinjection" Version="5.0.2" />
Frameworks
Dependencies
Adoption guide
Most ASP.NET Core and worker services that prioritize low ceremony and first-party integration.
NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.
Compatibility metadata lists 6 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.