SimpleInjector 3.1.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleInjector --version 3.1.0                
NuGet\Install-Package SimpleInjector -Version 3.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleInjector" Version="3.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleInjector --version 3.1.0                
#r "nuget: SimpleInjector, 3.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SimpleInjector as a Cake Addin
#addin nuget:?package=SimpleInjector&version=3.1.0

// Install SimpleInjector as a Cake Tool
#tool nuget:?package=SimpleInjector&version=3.1.0                

Simple Injector is an easy, flexible and fast dependency injection library that uses best practice to guide your solutions toward the pit of success.

Product Compatible and additional computed target framework versions.
.NET Framework net40-client is compatible.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
.NETPlatform dotnet is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (364)

Showing the top 5 NuGet packages that depend on SimpleInjector:

Package Downloads
SimpleInjector.Integration.AspNetCore

Integration library for ASP.NET Core for Simple Injector.

SimpleInjector.Integration.ServiceCollection

Integrates Simple Injector with applications that require the use of IServiceCollection for registration of framework components.

SimpleInjector.Integration.AspNetCore.Mvc.Core

Integration library for ASP.NET Core MVC core features for Simple Injector. This includes controller integration.

SimpleInjector.Integration.WebApi

Simple Injector ASP.NET Web API Integration.

SimpleInjector.Integration.Web

The Simple Injector ASP.NET Integration package adds a lifestyle to the Simple Injector called 'Per Web Request', which allows instances to live within a single HTTP request and get disposed when the request ends.

GitHub repositories (54)

Showing the top 5 popular GitHub repositories that depend on SimpleInjector:

Repository Stars
jbogard/MediatR
Simple, unambitious mediator implementation in .NET
chocolatey/choco
Chocolatey - the package manager for Windows
MediaBrowser/Emby
Emby Server is a personal media server with apps on just about every device.
dadhi/DryIoc
DryIoc is fast, small, full-featured IoC Container for .NET
reactiveui/splat
Makes things cross-platform
Version Downloads Last updated
5.5.0 488,409 8/16/2024
5.4.6 337,588 5/24/2024
5.4.5 115,454 4/25/2024
5.4.4 715,326 1/5/2024
5.4.3 103,782 12/13/2023
5.4.3-beta1 1,921 12/11/2023
5.4.2 123,233 11/15/2023
5.4.1 3,082,649 9/29/2022
5.4.1-beta2 3,048 9/27/2022
5.4.1-beta1 2,795 9/27/2022
5.4.0 2,703,475 7/20/2022
5.3.3 1,526,212 1/29/2022
5.3.2 2,036,217 7/2/2021
5.3.1 233,396 6/13/2021
5.3.0 1,946,104 3/4/2021
5.3.0-beta2 25,112 1/8/2021
5.3.0-beta1 3,233 1/7/2021
5.2.1 1,126,040 1/13/2021
5.2.0-alpha2 11,944 12/7/2020
5.2.0-alpha1 4,791 12/5/2020
5.1.0 732,697 10/24/2020
5.0.4 91,314 10/15/2020
5.0.3 820,926 7/13/2020
5.0.2 158,748 6/28/2020
5.0.1 112,331 6/15/2020
5.0.0 1,494,640 6/11/2020
5.0.0-beta2 9,822 6/6/2020
5.0.0-beta1 9,556 6/1/2020
4.10.2 2,326,225 4/24/2020
4.9.2 436,258 4/8/2020
4.9.1 942,138 3/6/2020
4.9.0 1,478,386 1/6/2020
4.8.1 596,132 11/30/2019
4.8.0 174,078 11/23/2019
4.8.0-beta2 9,010 11/20/2019
4.8.0-beta1 9,175 11/17/2019
4.8.0-alpha3 9,406 11/17/2019
4.8.0-alpha2 8,853 11/16/2019
4.8.0-alpha1 8,931 11/16/2019
4.7.1 1,494,206 9/2/2019
4.7.0 14,567 9/1/2019
4.6.2 787,946 7/27/2019
4.6.1 159,346 7/23/2019
4.6.0 1,542,226 5/11/2019
4.6.0-beta2 12,848 5/8/2019
4.6.0-beta1 12,989 4/23/2019
4.5.3 30,868 7/23/2019
4.5.2 110,366 5/6/2019
4.5.1 685,924 3/22/2019
4.5.0 57,703 3/21/2019
4.5.0-beta1 13,162 3/14/2019
4.4.3 2,120,354 1/1/2019
4.4.2 921,110 12/1/2018
4.4.0 1,223,672 11/2/2018
4.3.0 3,971,316 5/16/2018
4.3.0-beta1 12,732 5/11/2018
4.2.3 28,844 5/15/2018
4.2.2 202,007 4/26/2018
4.2.1 280,892 4/15/2018
4.2.0 16,785 4/14/2018
4.1.3 15,046 5/15/2018
4.1.2 16,132 4/26/2018
4.1.1 177,932 4/4/2018
4.1.0 204,289 3/23/2018
4.1.0-beta1 12,407 3/16/2018
4.1.0-alpha1 30,894 2/26/2018
4.0.12 2,461,736 10/21/2017
4.0.11 574,369 9/20/2017
4.0.8 1,830,441 6/3/2017
4.0.7 327,929 5/19/2017
4.0.6 169,795 5/4/2017
4.0.3 231,518 4/19/2017
4.0.2 19,408 4/19/2017
4.0.0 624,110 3/31/2017
4.0.0-beta2 34,646 3/14/2017
4.0.0-beta1 16,327 2/19/2017
4.0.0-alpha3 17,548 1/8/2017
4.0.0-alpha2 13,873 12/30/2016
4.0.0-alpha1 13,647 11/25/2016
3.3.2 1,191,259 12/2/2016
3.3.1 47,123 11/23/2016
3.3.0 87,892 11/21/2016
3.3.0-beta2 12,893 11/10/2016
3.3.0-beta1 12,759 11/9/2016
3.3.0-alpha1 12,493 11/11/2016
3.2.7 331,472 11/3/2016
3.2.5 28,997 11/1/2016
3.2.4 1,059,832 10/26/2016
3.2.3 100,760 10/16/2016
3.2.2 497,103 8/26/2016
3.2.0 608,487 6/28/2016
3.2.0-beta2 11,683 6/28/2016
3.2.0-beta1 11,791 6/27/2016
3.2.0-alpha2 13,886 5/2/2016
3.1.5 258,674 5/22/2016
3.1.5-alpha3 11,877 5/22/2016
3.1.5-alpha2 11,522 5/22/2016
3.1.5-alpha1 10,612 5/18/2016
3.1.4 180,257 5/1/2016
3.1.3 127,150 4/12/2016
3.1.2 634,298 12/14/2015
3.1.2-alpha2 11,006 12/8/2015
3.1.2-alpha1 10,717 12/6/2015
3.1.1 156,613 11/23/2015
3.1.0 218,815 10/12/2015
3.0.7 17,758 10/10/2015
3.0.6 23,146 10/4/2015
3.0.5 173,692 9/3/2015
3.0.4 57,592 8/31/2015
3.0.3 18,337 8/27/2015
3.0.1 44,183 8/20/2015
3.0.0 33,932 8/18/2015
3.0.0-beta4 13,770 8/11/2015
3.0.0-beta3 12,737 8/3/2015
3.0.0-beta2 12,774 7/17/2015
3.0.0-beta1 15,538 6/28/2015
3.0.0-alpha2 12,570 6/21/2015
3.0.0-alpha1 12,338 6/14/2015
2.8.3 250,833 7/17/2015
2.8.1 15,575 7/16/2015
2.8.0 387,587 5/2/2015
2.8.0-beta5 7,523 5/3/2015
2.8.0-beta4 12,920 4/27/2015
2.8.0-beta3 12,629 4/26/2015
2.8.0-beta2 12,680 4/17/2015
2.8.0-beta1 12,873 4/9/2015
2.8.0-alpha1 12,649 4/5/2015
2.7.3 287,707 3/9/2015
2.7.3-alpha1 12,774 3/1/2015
2.7.2 65,483 2/12/2015
2.7.2-beta2 7,538 2/11/2015
2.7.2-beta1 7,467 2/10/2015
2.7.2-alpha2 12,672 2/12/2015
2.7.2-alpha1 7,366 2/10/2015
2.7.1 43,650 2/1/2015
2.7.1-alpha3 8,004 1/16/2015
2.7.1-alpha2 7,421 1/16/2015
2.7.1-alpha1 7,316 1/15/2015
2.7.0 61,656 1/15/2015
2.7.0-beta2 7,366 1/13/2015
2.7.0-beta1 8,357 11/12/2014
2.6.1 181,367 10/26/2014
2.6.0 81,248 10/14/2014
2.6.0-beta2 7,859 9/20/2014
2.6.0-beta1 14,651 8/30/2014
2.6.0-alpha2 7,789 8/17/2014
2.6.0-alpha1 7,465 8/17/2014
2.5.2 128,572 7/13/2014
2.5.0 298,079 3/2/2014
2.5.0-beta2 12,682 2/26/2014
2.5.0-beta1 18,654 2/9/2014
2.4.1 87,910 1/14/2014
2.4.0 50,062 12/8/2013
2.4.0-beta3 12,060 11/24/2013
2.4.0-beta2 11,912 11/5/2013
2.4.0-beta1 12,094 10/15/2013
2.4.0-alpha3 7,654 8/23/2013
2.4.0-alpha1 7,681 7/15/2013
2.3.6 77,614 10/21/2013
2.3.5 46,176 9/2/2013
2.3.2 32,566 8/31/2013
2.3.0 69,274 6/30/2013
2.3.0-beta2 11,670 6/20/2013
2.3.0-beta1 8,320 6/18/2013
2.2.3 67,915 5/4/2013
2.2.1 32,802 4/19/2013
2.2.0 15,761 4/8/2013
2.1.0 15,850 3/19/2013
2.0.2 19,339 3/10/2013
2.0.1 16,565 2/28/2013
2.0.0 23,578 2/25/2013
2.0.0-beta5 12,327 2/22/2013
2.0.0-beta4 12,133 2/17/2013
2.0.0-beta3 12,211 2/10/2013
2.0.0-beta2 12,253 2/8/2013
2.0.0-beta1 10,334 1/29/2013
2.0.0-alpha1 8,731 1/19/2013
1.6.0.12319 34,809 11/15/2012
1.5.0.12199 21,942 7/17/2012
1.4.2.12140 17,887 5/19/2012
1.4.0.12049 20,667 2/17/2012
1.3.0.11343 18,289 12/10/2011
1.2.0.11273 46,487 10/3/2011

- `Lifestyle.CreateProducer<TService>(Type, Container)` overload added. (fixes #100)
- `Container.RegisterConditional` overload added that accepts a `Registration` instance. This adds extra flexibility and allows using conditional registrations using delegates. (fixes #102)
- `Container.GetTypesToRegister` overload added that accepts an `TypesToRegisterOptions` to allow excluding composites and including decorators and generic type definitions. (fixes #122)
- `RegisterCollection` overloads that accept a list of assemblies, now suppress composite types. (fixes  #119)
- Improved performance of `GetTypesToRegister` method and the `Register` and `RegisterCollection` overloads that accept a list of collections.
- Check added to `InstanceProducer` constructor to prevent incompatible `Registration` objects from being supplied. (fixes #52)
- Exception message improved in case batch-registration skipped decorator. (fixes #13)
- `Lifestyle.CreateRegistration` and `Container.AddRegistration` methods now throws a clear exception explaining that open generic types can't be supplied. (fixes #126)
- Expection message improved for types with multiple constructors. The exception message now references the documentation about this subject.


Full notes: https://github.com/simpleinjector/SimpleInjector/releases/tag/v3.1