SimpleInjector 2.8.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleInjector --version 2.8.1
                    
NuGet\Install-Package SimpleInjector -Version 2.8.1
                    
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="2.8.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleInjector" Version="2.8.1" />
                    
Directory.Packages.props
<PackageReference Include="SimpleInjector" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleInjector --version 2.8.1
                    
#r "nuget: SimpleInjector, 2.8.1"
                    
#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.
#:package SimpleInjector@2.8.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimpleInjector&version=2.8.1
                    
Install as a Cake Addin
#tool nuget:?package=SimpleInjector&version=2.8.1
                    
Install as a Cake Tool

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. 
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 (365)

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 (4)

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

Repository Stars
LuckyPennySoftware/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.
NRules/NRules
Rules engine for .NET, based on the Rete matching algorithm, with internal DSL in C#.
Version Downloads Last Updated
5.5.0 1,601,204 8/16/2024
5.4.6 475,179 5/24/2024
5.4.5 176,506 4/25/2024
5.4.4 992,641 1/5/2024
5.4.3 141,239 12/13/2023
5.4.3-beta1 1,986 12/11/2023
5.4.2 172,413 11/15/2023
5.4.1 3,881,144 9/29/2022
5.4.1-beta2 3,158 9/27/2022
5.4.1-beta1 2,899 9/27/2022
5.4.0 3,929,069 7/20/2022
5.3.3 1,708,355 1/29/2022
5.3.2 2,294,637 7/2/2021
5.3.1 246,682 6/13/2021
5.3.0 2,159,863 3/4/2021
5.3.0-beta2 26,161 1/8/2021
5.3.0-beta1 3,398 1/7/2021
5.2.1 1,379,275 1/13/2021
5.2.0-alpha2 12,115 12/7/2020
5.2.0-alpha1 4,933 12/5/2020
5.1.0 786,435 10/24/2020
5.0.4 98,533 10/15/2020
5.0.3 885,225 7/13/2020
5.0.2 178,683 6/28/2020
5.0.1 114,729 6/15/2020
5.0.0 1,768,316 6/11/2020
5.0.0-beta2 9,981 6/6/2020
5.0.0-beta1 9,731 6/1/2020
4.10.2 2,543,670 4/24/2020
4.9.2 463,175 4/8/2020
4.9.1 982,620 3/6/2020
4.9.0 1,580,875 1/6/2020
4.8.1 639,282 11/30/2019
4.8.0 182,176 11/23/2019
4.8.0-beta2 9,172 11/20/2019
4.8.0-beta1 9,329 11/17/2019
4.8.0-alpha3 9,570 11/17/2019
4.8.0-alpha2 9,016 11/16/2019
4.8.0-alpha1 9,092 11/16/2019
4.7.1 1,705,515 9/2/2019
4.7.0 15,044 9/1/2019
4.6.2 825,936 7/27/2019
4.6.1 175,099 7/23/2019
4.6.0 1,648,192 5/11/2019
4.6.0-beta2 12,991 5/8/2019
4.6.0-beta1 13,156 4/23/2019
4.5.3 31,371 7/23/2019
4.5.2 113,120 5/6/2019
4.5.1 725,084 3/22/2019
4.5.0 74,917 3/21/2019
4.5.0-beta1 13,304 3/14/2019
4.4.3 2,287,091 1/1/2019
4.4.2 947,779 12/1/2018
4.4.0 1,280,865 11/2/2018
4.3.0 4,209,573 5/16/2018
4.3.0-beta1 13,109 5/11/2018
4.2.3 29,461 5/15/2018
4.2.2 209,949 4/26/2018
4.2.1 287,615 4/15/2018
4.2.0 18,297 4/14/2018
4.1.3 15,511 5/15/2018
4.1.2 16,613 4/26/2018
4.1.1 187,794 4/4/2018
4.1.0 209,995 3/23/2018
4.1.0-beta1 12,855 3/16/2018
4.1.0-alpha1 31,287 2/26/2018
4.0.12 2,523,649 10/21/2017
4.0.11 615,432 9/20/2017
4.0.8 1,999,416 6/3/2017
4.0.7 352,485 5/19/2017
4.0.6 196,405 5/4/2017
4.0.3 254,126 4/19/2017
4.0.2 20,362 4/19/2017
4.0.0 666,761 3/31/2017
4.0.0-beta2 34,984 3/14/2017
4.0.0-beta1 16,580 2/19/2017
4.0.0-alpha3 17,842 1/8/2017
4.0.0-alpha2 14,153 12/30/2016
4.0.0-alpha1 13,933 11/25/2016
3.3.2 1,237,924 12/2/2016
3.3.1 48,545 11/23/2016
3.3.0 91,574 11/21/2016
3.3.0-beta2 13,177 11/10/2016
3.3.0-beta1 13,028 11/9/2016
3.3.0-alpha1 12,768 11/11/2016
3.2.7 338,363 11/3/2016
3.2.5 29,771 11/1/2016
3.2.4 1,069,801 10/26/2016
3.2.3 103,175 10/16/2016
3.2.2 513,178 8/26/2016
3.2.0 673,702 6/28/2016
3.2.0-beta2 11,966 6/28/2016
3.2.0-beta1 12,072 6/27/2016
3.2.0-alpha2 14,181 5/2/2016
3.1.5 278,942 5/22/2016
3.1.5-alpha3 12,157 5/22/2016
3.1.5-alpha2 11,806 5/22/2016
3.1.5-alpha1 10,911 5/18/2016
3.1.4 189,982 5/1/2016
3.1.3 131,869 4/12/2016
3.1.2 672,852 12/14/2015
3.1.2-alpha2 11,318 12/8/2015
3.1.2-alpha1 11,007 12/6/2015
3.1.1 163,074 11/23/2015
3.1.0 230,132 10/12/2015
3.0.7 18,229 10/10/2015
3.0.6 23,591 10/4/2015
3.0.5 185,967 9/3/2015
3.0.4 57,955 8/31/2015
3.0.3 18,858 8/27/2015
3.0.1 44,502 8/20/2015
3.0.0 34,868 8/18/2015
3.0.0-beta4 14,242 8/11/2015
3.0.0-beta3 13,059 8/3/2015
3.0.0-beta2 13,077 7/17/2015
3.0.0-beta1 16,419 6/28/2015
3.0.0-alpha2 12,857 6/21/2015
3.0.0-alpha1 12,624 6/14/2015
2.8.3 266,509 7/17/2015
2.8.1 15,902 7/16/2015
2.8.0 407,465 5/2/2015
2.8.0-beta5 7,835 5/3/2015
2.8.0-beta4 13,221 4/27/2015
2.8.0-beta3 12,916 4/26/2015
2.8.0-beta2 12,992 4/17/2015
2.8.0-beta1 13,180 4/9/2015
2.8.0-alpha1 13,002 4/5/2015
2.7.3 302,945 3/9/2015
2.7.3-alpha1 13,052 3/1/2015
2.7.2 67,907 2/12/2015
2.7.2-beta2 7,818 2/11/2015
2.7.2-beta1 7,775 2/10/2015
2.7.2-alpha2 12,962 2/12/2015
2.7.2-alpha1 7,649 2/10/2015
2.7.1 44,435 2/1/2015
2.7.1-alpha3 8,287 1/16/2015
2.7.1-alpha2 7,715 1/16/2015
2.7.1-alpha1 7,624 1/15/2015
2.7.0 63,523 1/15/2015
2.7.0-beta2 7,680 1/13/2015
2.7.0-beta1 8,644 11/12/2014
2.6.1 188,672 10/26/2014
2.6.0 141,207 10/14/2014
2.6.0-beta2 8,163 9/20/2014
2.6.0-beta1 14,939 8/30/2014
2.6.0-alpha2 8,084 8/17/2014
2.6.0-alpha1 7,791 8/17/2014
2.5.2 130,221 7/13/2014
2.5.0 309,786 3/2/2014
2.5.0-beta2 12,995 2/26/2014
2.5.0-beta1 19,658 2/9/2014
2.4.1 88,647 1/14/2014
2.4.0 52,580 12/8/2013
2.4.0-beta3 12,360 11/24/2013
2.4.0-beta2 12,248 11/5/2013
2.4.0-beta1 12,404 10/15/2013
2.4.0-alpha3 8,002 8/23/2013
2.4.0-alpha1 7,978 7/15/2013
2.3.6 87,256 10/21/2013
2.3.5 49,485 9/2/2013
2.3.2 32,869 8/31/2013
2.3.0 69,722 6/30/2013
2.3.0-beta2 12,021 6/20/2013
2.3.0-beta1 8,637 6/18/2013
2.2.3 71,857 5/4/2013
2.2.1 33,127 4/19/2013
2.2.0 16,093 4/8/2013
2.1.0 16,208 3/19/2013
2.0.2 19,987 3/10/2013
2.0.1 16,897 2/28/2013
2.0.0 26,871 2/25/2013
2.0.0-beta5 13,307 2/22/2013
2.0.0-beta4 12,427 2/17/2013
2.0.0-beta3 12,516 2/10/2013
2.0.0-beta2 12,582 2/8/2013
2.0.0-beta1 10,627 1/29/2013
2.0.0-alpha1 9,036 1/19/2013
1.6.0.12319 35,481 11/15/2012
1.5.0.12199 22,379 7/17/2012
1.4.2.12140 18,500 5/19/2012
1.4.0.12049 20,998 2/17/2012
1.3.0.11343 18,617 12/10/2011
1.2.0.11273 48,532 10/3/2011

This patch release fixes a bug in the diagnostic system. The torn lifestyle warning caused false positives in situations where RegisterSingle<T>(T instance) was used.