SimpleInjector 4.0.0-alpha1

Prefix Reserved
This is a prerelease version of SimpleInjector.
There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleInjector --version 4.0.0-alpha1
                    
NuGet\Install-Package SimpleInjector -Version 4.0.0-alpha1
                    
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="4.0.0-alpha1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleInjector" Version="4.0.0-alpha1" />
                    
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 4.0.0-alpha1
                    
#r "nuget: SimpleInjector, 4.0.0-alpha1"
                    
#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.
#addin nuget:?package=SimpleInjector&version=4.0.0-alpha1&prerelease
                    
Install SimpleInjector as a Cake Addin
#tool nuget:?package=SimpleInjector&version=4.0.0-alpha1&prerelease
                    
Install SimpleInjector 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 net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 was computed.  netstandard1.2 was computed.  netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  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. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 755,516 8/16/2024
5.4.6 379,951 5/24/2024
5.4.5 135,050 4/25/2024
5.4.4 809,499 1/5/2024
5.4.3 116,787 12/13/2023
5.4.3-beta1 1,933 12/11/2023
5.4.2 138,865 11/15/2023
5.4.1 3,339,915 9/29/2022
5.4.1-beta2 3,074 9/27/2022
5.4.1-beta1 2,815 9/27/2022
5.4.0 3,065,262 7/20/2022
5.3.3 1,580,986 1/29/2022
5.3.2 2,104,556 7/2/2021
5.3.1 237,181 6/13/2021
5.3.0 1,998,163 3/4/2021
5.3.0-beta2 25,439 1/8/2021
5.3.0-beta1 3,257 1/7/2021
5.2.1 1,196,536 1/13/2021
5.2.0-alpha2 11,972 12/7/2020
5.2.0-alpha1 4,816 12/5/2020
5.1.0 751,648 10/24/2020
5.0.4 93,462 10/15/2020
5.0.3 841,372 7/13/2020
5.0.2 165,369 6/28/2020
5.0.1 112,972 6/15/2020
5.0.0 1,572,587 6/11/2020
5.0.0-beta2 9,860 6/6/2020
5.0.0-beta1 9,602 6/1/2020
4.10.2 2,390,948 4/24/2020
4.9.2 445,600 4/8/2020
4.9.1 953,995 3/6/2020
4.9.0 1,509,094 1/6/2020
4.8.1 607,091 11/30/2019
4.8.0 176,390 11/23/2019
4.8.0-beta2 9,046 11/20/2019
4.8.0-beta1 9,201 11/17/2019
4.8.0-alpha3 9,442 11/17/2019
4.8.0-alpha2 8,878 11/16/2019
4.8.0-alpha1 8,958 11/16/2019
4.7.1 1,543,431 9/2/2019
4.7.0 14,713 9/1/2019
4.6.2 799,280 7/27/2019
4.6.1 163,441 7/23/2019
4.6.0 1,570,698 5/11/2019
4.6.0-beta2 12,874 5/8/2019
4.6.0-beta1 13,037 4/23/2019
4.5.3 31,014 7/23/2019
4.5.2 111,121 5/6/2019
4.5.1 697,318 3/22/2019
4.5.0 61,746 3/21/2019
4.5.0-beta1 13,189 3/14/2019
4.4.3 2,166,085 1/1/2019
4.4.2 929,159 12/1/2018
4.4.0 1,239,359 11/2/2018
4.3.0 4,040,711 5/16/2018
4.3.0-beta1 12,835 5/11/2018
4.2.3 28,996 5/15/2018
4.2.2 204,402 4/26/2018
4.2.1 283,129 4/15/2018
4.2.0 16,927 4/14/2018
4.1.3 15,177 5/15/2018
4.1.2 16,268 4/26/2018
4.1.1 180,585 4/4/2018
4.1.0 206,229 3/23/2018
4.1.0-beta1 12,564 3/16/2018
4.1.0-alpha1 31,025 2/26/2018
4.0.12 2,483,239 10/21/2017
4.0.11 586,641 9/20/2017
4.0.8 1,870,497 6/3/2017
4.0.7 331,090 5/19/2017
4.0.6 173,093 5/4/2017
4.0.3 237,083 4/19/2017
4.0.2 19,719 4/19/2017
4.0.0 635,545 3/31/2017
4.0.0-beta2 34,752 3/14/2017
4.0.0-beta1 16,398 2/19/2017
4.0.0-alpha3 17,620 1/8/2017
4.0.0-alpha2 13,944 12/30/2016
4.0.0-alpha1 13,721 11/25/2016
3.3.2 1,205,652 12/2/2016
3.3.1 47,647 11/23/2016
3.3.0 88,889 11/21/2016
3.3.0-beta2 12,964 11/10/2016
3.3.0-beta1 12,829 11/9/2016
3.3.0-alpha1 12,565 11/11/2016
3.2.7 333,832 11/3/2016
3.2.5 29,191 11/1/2016
3.2.4 1,061,153 10/26/2016
3.2.3 101,334 10/16/2016
3.2.2 501,109 8/26/2016
3.2.0 631,598 6/28/2016
3.2.0-beta2 11,759 6/28/2016
3.2.0-beta1 11,862 6/27/2016
3.2.0-alpha2 13,977 5/2/2016
3.1.5 269,063 5/22/2016
3.1.5-alpha3 11,950 5/22/2016
3.1.5-alpha2 11,611 5/22/2016
3.1.5-alpha1 10,703 5/18/2016
3.1.4 183,452 5/1/2016
3.1.3 128,832 4/12/2016
3.1.2 645,189 12/14/2015
3.1.2-alpha2 11,099 12/8/2015
3.1.2-alpha1 10,790 12/6/2015
3.1.1 157,979 11/23/2015
3.1.0 220,888 10/12/2015
3.0.7 17,904 10/10/2015
3.0.6 23,287 10/4/2015
3.0.5 178,009 9/3/2015
3.0.4 57,682 8/31/2015
3.0.3 18,491 8/27/2015
3.0.1 44,270 8/20/2015
3.0.0 34,186 8/18/2015
3.0.0-beta4 13,902 8/11/2015
3.0.0-beta3 12,821 8/3/2015
3.0.0-beta2 12,858 7/17/2015
3.0.0-beta1 15,770 6/28/2015
3.0.0-alpha2 12,645 6/21/2015
3.0.0-alpha1 12,413 6/14/2015
2.8.3 254,282 7/17/2015
2.8.1 15,663 7/16/2015
2.8.0 393,337 5/2/2015
2.8.0-beta5 7,597 5/3/2015
2.8.0-beta4 13,021 4/27/2015
2.8.0-beta3 12,705 4/26/2015
2.8.0-beta2 12,774 4/17/2015
2.8.0-beta1 12,967 4/9/2015
2.8.0-alpha1 12,743 4/5/2015
2.7.3 291,911 3/9/2015
2.7.3-alpha1 12,851 3/1/2015
2.7.2 66,269 2/12/2015
2.7.2-beta2 7,614 2/11/2015
2.7.2-beta1 7,580 2/10/2015
2.7.2-alpha2 12,760 2/12/2015
2.7.2-alpha1 7,445 2/10/2015
2.7.1 43,897 2/1/2015
2.7.1-alpha3 8,080 1/16/2015
2.7.1-alpha2 7,498 1/16/2015
2.7.1-alpha1 7,403 1/15/2015
2.7.0 62,279 1/15/2015
2.7.0-beta2 7,466 1/13/2015
2.7.0-beta1 8,433 11/12/2014
2.6.1 183,049 10/26/2014
2.6.0 87,059 10/14/2014
2.6.0-beta2 7,962 9/20/2014
2.6.0-beta1 14,728 8/30/2014
2.6.0-alpha2 7,883 8/17/2014
2.6.0-alpha1 7,559 8/17/2014
2.5.2 129,103 7/13/2014
2.5.0 301,869 3/2/2014
2.5.0-beta2 12,760 2/26/2014
2.5.0-beta1 18,951 2/9/2014
2.4.1 88,100 1/14/2014
2.4.0 51,333 12/8/2013
2.4.0-beta3 12,138 11/24/2013
2.4.0-beta2 12,018 11/5/2013
2.4.0-beta1 12,173 10/15/2013
2.4.0-alpha3 7,752 8/23/2013
2.4.0-alpha1 7,760 7/15/2013
2.3.6 80,432 10/21/2013
2.3.5 47,249 9/2/2013
2.3.2 32,647 8/31/2013
2.3.0 69,414 6/30/2013
2.3.0-beta2 11,767 6/20/2013
2.3.0-beta1 8,407 6/18/2013
2.2.3 68,672 5/4/2013
2.2.1 32,897 4/19/2013
2.2.0 15,845 4/8/2013
2.1.0 15,980 3/19/2013
2.0.2 19,516 3/10/2013
2.0.1 16,659 2/28/2013
2.0.0 24,473 2/25/2013
2.0.0-beta5 12,723 2/22/2013
2.0.0-beta4 12,214 2/17/2013
2.0.0-beta3 12,302 2/10/2013
2.0.0-beta2 12,347 2/8/2013
2.0.0-beta1 10,417 1/29/2013
2.0.0-alpha1 8,813 1/19/2013
1.6.0.12319 34,998 11/15/2012
1.5.0.12199 22,116 7/17/2012
1.4.2.12140 18,055 5/19/2012
1.4.0.12049 20,756 2/17/2012
1.3.0.11343 18,379 12/10/2011
1.2.0.11273 47,163 10/3/2011

Breaking Changes:
 -[Core] Marked deprecated integration extension methods with Obsolete(true) causing them to trigger
  a compile error. This includes methods like RegisterPerWebRequest, RegisterWebApiRequest,
  RegisterPerWcfOperation, GetCurrentWcfOperationScope, RegisterLifetimeScope, GetCurrentLifetimeScope
  and GetCurrentExecutionContextScope. (fixes #304)
 -[Core] Lifestyle.Length property made public. (fixes #245)
 -[Core] LifetimeScopeLifestyle deprecated. (fixes #299)
 -[Core] ExecutionContextScopeLifestyle deprecated. (fixes #299)
 -[Core] WebApiRequestLifestyle deprecated. (fixes #331)

Improvements/Changes:
 -[Core] Removed all methods that were marked [obsolete(true)] since v3.0. (fixes #305)
 -[Core] ThreadScopedLifestyle added to core library as replacement of LifetimeScopeLifestyle. (fixes #299)
 -[Core] AsyncScopedLifestyle added to core library as replacement of ExecutionContextScopeLifestyle. (fixes #299)