Microsoft.Extensions.DependencyInjection 11.0.0-preview.7.26381.103
About
Supports the dependency injection (DI) software design pattern which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies.
Key Features
Provides an implementation of the DI interfaces found in the Microsoft.Extensions.DependencyInjection.Abstractions package.
How to Use
ServiceCollection services = new ();
services.AddSingleton<IMessageWriter, MessageWriter>();
using ServiceProvider provider = services.BuildServiceProvider();
// The code below, following the IoC pattern, is typically only aware of the IMessageWriter interface, not the implementation.
IMessageWriter messageWriter = provider.GetService<IMessageWriter>()!;
messageWriter.Write("Hello");
public interface IMessageWriter
{
void Write(string message);
}
internal class MessageWriter : IMessageWriter
{
public void Write(string message)
{
Console.WriteLine($"MessageWriter.Write(message: \"{message}\")");
}
}
Main Types
The main types provided by this library are:
Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactoryMicrosoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensionsMicrosoft.Extensions.DependencyInjection.ServiceProvider
Additional Documentation
- Conceptual documentation
- API documentation
Related Packages
Microsoft.Extensions.DependencyInjection.AbstractionsMicrosoft.Extensions.HostingMicrosoft.Extensions.Options
Feedback & Contributing
Microsoft.Extensions.DependencyInjection is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.Extensions.DependencyInjection.
| Packages | Downloads |
|---|---|
|
Microsoft.Extensions.Logging
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
|
7,556 |
|
Senparc.CO2NET
Senparc.CO2NET 公共基础库
Senparc.Weixin SDK 开源项目:
https://github.com/Senparc/Senparc.CO2NET
|
43 |
|
Senparc.CO2NET
Senparc.CO2NET 公共基础库
Senparc.Weixin SDK 开源项目:
https://github.com/Senparc/Senparc.CO2NET
|
41 |
|
Microsoft.AspNetCore.Components.Web
Support for rendering ASP.NET Core components for browsers.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/6a6d775f49623bbd742c02f89d373630668547bb
|
36 |
|
Microsoft.VisualStudio.Web.CodeGeneration.Core
Contains the core infrastructure used by ASP.NET Core Code Generators.
|
36 |
|
Microsoft.AspNetCore.Mvc
ASP.NET Core MVC is a web framework that gives you a powerful, patterns-based way to build dynamic websites and web APIs. ASP.NET Core MVC enables a clean separation of concerns and gives you full control over markup.
|
35 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d9ba962869d1b1c410ea476b02de2f8e27eec762
|
34 |
|
Microsoft.Identity.Web.TokenCache
This package bring token cache serializers for MSAL.NET confidential client applications.
|
33 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
|
33 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/1dcf7acfacf0fe154adcc23270cb0da11ff44ace
|
30 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
|
29 |
|
DotNetCore.CAP
EventBus and eventually consistency in distributed architectures.
|
29 |
|
Microsoft.AspNetCore.DataProtection.Extensions
Additional APIs for ASP.NET Core data protection.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/8486d31e24f30e3fa1809a95699a0adc16f448d7
|
28 |
|
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application.
This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
|
28 |
|
Microsoft.Extensions.Logging
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
|
28 |
|
Microsoft.AspNetCore.Components.Web
Support for rendering ASP.NET Core components for browsers.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/4768f164d522e128f91827810527730f7468fd74
|
28 |
|
Microsoft.AspNetCore.Components.Web
Support for rendering ASP.NET Core components for browsers.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/c70204ae3c91d2b48fa6d9b92b62265f368421b4
|
28 |
|
Microsoft.ServiceFabric.AspNetCore.Abstractions
This package provides abstractions for creating AspNetCore Service Fabric microservices.
|
28 |
|
Microsoft.AspNetCore.Mvc
ASP.NET Core MVC is a web framework that gives you a powerful, patterns-based way to build dynamic websites and web APIs. ASP.NET Core MVC enables a clean separation of concerns and gives you full control over markup.
|
27 |
|
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application.
This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
|
27 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET 10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.7.26381.103)
.NET 11.0
- No dependencies.
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0-preview.7.26381.103)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.7.26381.103)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0-preview.7.26381.103)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.7.26381.103)
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET Standard 2.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0-preview.7.26381.103)
| Version | Downloads | Last updated |
|---|---|---|
| 11.0.0-preview.7.26381.103 | 1 | 8/27/2026 |
| 11.0.0-preview.6.26359.118 | 1 | 8/27/2026 |
| 11.0.0-preview.5.26302.115 | 0 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 1 | 8/27/2026 |
| 11.0.0-preview.3.26207.106 | 4 | 4/15/2026 |
| 11.0.0-preview.2.26159.112 | 5 | 3/13/2026 |
| 11.0.0-preview.1.26104.118 | 6 | 2/14/2026 |
| 10.0.11 | 0 | 8/11/2026 |
| 10.0.10 | 0 | 7/14/2026 |
| 10.0.9 | 0 | 6/9/2026 |
| 10.0.8 | 1 | 8/27/2026 |
| 10.0.7 | 1 | 4/23/2026 |
| 10.0.6 | 4 | 4/17/2026 |
| 10.0.5 | 6 | 3/14/2026 |
| 10.0.4 | 4 | 3/14/2026 |
| 10.0.3 | 5 | 2/14/2026 |
| 10.0.2 | 7 | 1/19/2026 |
| 10.0.1 | 8 | 12/15/2025 |
| 10.0.0 | 10 | 11/17/2025 |
| 10.0.0-rc.2.25502.107 | 9 | 10/21/2025 |
| 10.0.0-rc.1.25451.107 | 9 | 9/14/2025 |
| 10.0.0-preview.7.25380.108 | 13 | 8/17/2025 |
| 10.0.0-preview.6.25358.103 | 12 | 7/27/2025 |
| 10.0.0-preview.5.25277.114 | 11 | 6/9/2025 |
| 10.0.0-preview.4.25258.110 | 14 | 7/28/2025 |
| 10.0.0-preview.3.25171.5 | 3 | 6/11/2025 |
| 10.0.0-preview.2.25163.2 | 4 | 6/11/2025 |
| 10.0.0-preview.1.25080.5 | 3 | 6/11/2025 |
| 9.0.19 | 0 | 8/11/2026 |
| 9.0.18 | 0 | 7/14/2026 |
| 9.0.17 | 0 | 6/9/2026 |
| 9.0.16 | 0 | 5/12/2026 |
| 9.0.15 | 4 | 4/17/2026 |
| 9.0.14 | 4 | 3/14/2026 |
| 9.0.13 | 5 | 2/14/2026 |
| 9.0.12 | 6 | 1/24/2026 |
| 9.0.11 | 6 | 12/18/2025 |
| 9.0.10 | 8 | 10/22/2025 |
| 9.0.9 | 8 | 9/16/2025 |
| 9.0.8 | 12 | 8/11/2025 |
| 9.0.7 | 9 | 7/28/2025 |
| 9.0.6 | 3 | 6/12/2025 |
| 9.0.5 | 2 | 6/16/2025 |
| 9.0.4 | 3 | 6/11/2025 |
| 9.0.3 | 5 | 6/11/2025 |
| 9.0.2 | 10 | 6/11/2025 |
| 9.0.1 | 3 | 6/11/2025 |
| 9.0.0 | 4 | 6/12/2025 |
| 9.0.0-rc.2.24473.5 | 3 | 6/8/2025 |
| 9.0.0-rc.1.24431.7 | 4 | 6/11/2025 |
| 9.0.0-preview.7.24405.7 | 12 | 6/11/2025 |
| 9.0.0-preview.6.24327.7 | 3 | 6/11/2025 |
| 9.0.0-preview.5.24306.7 | 3 | 6/11/2025 |
| 9.0.0-preview.4.24266.19 | 2 | 6/11/2025 |
| 9.0.0-preview.3.24172.9 | 1 | 6/11/2025 |
| 9.0.0-preview.2.24128.5 | 3 | 6/11/2025 |
| 9.0.0-preview.1.24080.9 | 4 | 6/11/2025 |
| 8.0.1 | 2 | 6/11/2025 |
| 8.0.0 | 4 | 6/11/2025 |
| 8.0.0-rc.2.23479.6 | 5 | 6/11/2025 |
| 8.0.0-rc.1.23419.4 | 22 | 6/11/2025 |
| 8.0.0-preview.7.23375.6 | 12 | 6/11/2025 |
| 8.0.0-preview.6.23329.7 | 13 | 6/11/2025 |
| 8.0.0-preview.5.23280.8 | 11 | 6/11/2025 |
| 8.0.0-preview.4.23259.5 | 20 | 6/11/2025 |
| 8.0.0-preview.3.23174.8 | 18 | 6/11/2025 |
| 8.0.0-preview.2.23128.3 | 18 | 6/11/2025 |
| 8.0.0-preview.1.23110.8 | 14 | 6/11/2025 |
| 7.0.0 | 16 | 6/11/2025 |
| 7.0.0-rc.2.22472.3 | 17 | 6/11/2025 |
| 7.0.0-rc.1.22426.10 | 14 | 6/11/2025 |
| 7.0.0-preview.7.22375.6 | 19 | 6/11/2025 |
| 7.0.0-preview.6.22324.4 | 23 | 6/11/2025 |
| 7.0.0-preview.5.22301.12 | 11 | 6/11/2025 |
| 7.0.0-preview.4.22229.4 | 12 | 6/11/2025 |
| 7.0.0-preview.3.22175.4 | 22 | 6/11/2025 |
| 7.0.0-preview.2.22152.2 | 12 | 6/11/2025 |
| 7.0.0-preview.1.22076.8 | 11 | 6/11/2025 |
| 6.0.2 | 19 | 6/11/2025 |
| 6.0.1 | 21 | 6/11/2025 |
| 6.0.0 | 15 | 6/11/2025 |
| 6.0.0-rc.2.21480.5 | 22 | 6/11/2025 |
| 6.0.0-rc.1.21451.13 | 12 | 6/11/2025 |
| 6.0.0-preview.7.21377.19 | 10 | 6/11/2025 |
| 6.0.0-preview.6.21352.12 | 23 | 6/11/2025 |
| 6.0.0-preview.5.21301.5 | 19 | 6/11/2025 |
| 6.0.0-preview.4.21253.7 | 23 | 6/11/2025 |
| 6.0.0-preview.3.21201.4 | 12 | 6/11/2025 |
| 6.0.0-preview.2.21154.6 | 14 | 6/11/2025 |
| 6.0.0-preview.1.21102.12 | 15 | 6/11/2025 |
| 5.0.2 | 16 | 6/11/2025 |
| 5.0.1 | 17 | 6/8/2025 |
| 5.0.0 | 13 | 6/11/2025 |
| 5.0.0-rc.2.20475.5 | 13 | 6/11/2025 |
| 5.0.0-rc.1.20451.14 | 21 | 6/11/2025 |
| 5.0.0-preview.8.20407.11 | 18 | 6/11/2025 |
| 5.0.0-preview.7.20364.11 | 18 | 6/15/2025 |
| 5.0.0-preview.6.20305.6 | 21 | 6/11/2025 |
| 5.0.0-preview.5.20278.1 | 15 | 6/11/2025 |
| 5.0.0-preview.4.20251.6 | 14 | 6/11/2025 |
| 5.0.0-preview.3.20215.2 | 14 | 6/11/2025 |
| 5.0.0-preview.2.20160.3 | 11 | 6/11/2025 |
| 5.0.0-preview.1.20120.4 | 20 | 6/11/2025 |
| 3.1.32 | 19 | 6/8/2025 |
| 3.1.31 | 13 | 6/11/2025 |
| 3.1.30 | 23 | 6/11/2025 |
| 3.1.29 | 21 | 6/11/2025 |
| 3.1.28 | 23 | 6/11/2025 |
| 3.1.27 | 20 | 6/11/2025 |
| 3.1.26 | 12 | 6/11/2025 |
| 3.1.25 | 22 | 6/11/2025 |
| 3.1.24 | 23 | 6/11/2025 |
| 3.1.23 | 15 | 6/11/2025 |
| 3.1.22 | 19 | 6/11/2025 |
| 3.1.21 | 18 | 6/11/2025 |
| 3.1.20 | 18 | 6/8/2025 |
| 3.1.19 | 15 | 6/11/2025 |
| 3.1.18 | 25 | 6/11/2025 |
| 3.1.17 | 17 | 6/11/2025 |
| 3.1.16 | 15 | 6/11/2025 |
| 3.1.15 | 20 | 6/11/2025 |
| 3.1.14 | 12 | 6/11/2025 |
| 3.1.13 | 17 | 6/11/2025 |
| 3.1.12 | 19 | 6/11/2025 |
| 3.1.11 | 12 | 6/11/2025 |
| 3.1.10 | 19 | 6/11/2025 |
| 3.1.9 | 23 | 6/11/2025 |
| 3.1.8 | 15 | 6/11/2025 |
| 3.1.7 | 38 | 6/11/2025 |
| 3.1.6 | 20 | 6/9/2025 |
| 3.1.5 | 21 | 6/11/2025 |
| 3.1.4 | 12 | 6/11/2025 |
| 3.1.3 | 16 | 6/11/2025 |
| 3.1.2 | 11 | 6/11/2025 |
| 3.1.1 | 24 | 6/11/2025 |
| 3.1.0 | 19 | 6/11/2025 |
| 3.1.0-preview3.19553.2 | 12 | 6/11/2025 |
| 3.1.0-preview2.19525.4 | 14 | 6/11/2025 |
| 3.1.0-preview1.19506.1 | 20 | 6/11/2025 |
| 3.0.3 | 24 | 6/11/2025 |
| 3.0.2 | 14 | 6/7/2025 |
| 3.0.1 | 16 | 6/11/2025 |
| 3.0.0 | 14 | 6/11/2025 |
| 3.0.0-rc1.19456.10 | 15 | 6/11/2025 |
| 3.0.0-preview9.19423.4 | 13 | 6/11/2025 |
| 3.0.0-preview8.19405.4 | 13 | 6/11/2025 |
| 3.0.0-preview7.19362.4 | 12 | 6/11/2025 |
| 3.0.0-preview6.19304.6 | 13 | 6/11/2025 |
| 3.0.0-preview5.19227.9 | 20 | 6/11/2025 |
| 3.0.0-preview4.19216.2 | 20 | 6/11/2025 |
| 3.0.0-preview3.19153.1 | 12 | 6/11/2025 |
| 3.0.0-preview.19074.2 | 13 | 6/11/2025 |
| 3.0.0-preview.18572.1 | 14 | 6/11/2025 |
| 2.2.0 | 12 | 6/11/2025 |
| 2.2.0-preview3-35497 | 13 | 6/11/2025 |
| 2.2.0-preview2-35157 | 18 | 6/11/2025 |
| 2.2.0-preview1-35029 | 14 | 6/11/2025 |
| 2.1.1 | 18 | 6/11/2025 |
| 2.1.0 | 23 | 6/11/2025 |
| 2.1.0-rc1-final | 19 | 6/7/2025 |
| 2.1.0-preview2-final | 20 | 6/11/2025 |
| 2.1.0-preview1-final | 12 | 6/12/2025 |
| 2.0.0 | 15 | 6/11/2025 |
| 2.0.0-preview2-final | 15 | 6/11/2025 |
| 2.0.0-preview1-final | 14 | 6/11/2025 |
| 1.1.1 | 14 | 6/11/2025 |
| 1.1.0 | 14 | 6/11/2025 |
| 1.1.0-preview1-final | 17 | 6/11/2025 |
| 1.0.2 | 16 | 6/12/2025 |
| 1.0.1 | 15 | 6/11/2025 |
| 1.0.0 | 12 | 6/11/2025 |
| 1.0.0-rc2-final | 14 | 6/11/2025 |
| 1.0.0-rc1-final | 17 | 6/11/2025 |