SimpleInjector 2.4.0-alpha3

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 2.4.0-alpha3
                    
NuGet\Install-Package SimpleInjector -Version 2.4.0-alpha3
                    
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.4.0-alpha3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleInjector" Version="2.4.0-alpha3" />
                    
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.4.0-alpha3
                    
#r "nuget: SimpleInjector, 2.4.0-alpha3"
                    
#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=2.4.0-alpha3&prerelease
                    
Install SimpleInjector as a Cake Addin
#tool nuget:?package=SimpleInjector&version=2.4.0-alpha3&prerelease
                    
Install SimpleInjector as a Cake Tool

The goal of Simple Injector is to provide .NET and Silveright application developers with an easy, flexible, and fast dependency injection framework, that uses best practices to steers developers towards the pit of success.

Product Compatible and additional computed target framework versions.
.NET Framework net40-client is compatible. 
Silverlight sl4 is compatible.  sl5 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 (363)

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 20 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
BlogEngine/BlogEngine.NET
Multi-User ASP.NET Blogging Application
SolrNet/SolrNet
Solr client for .Net
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
danielpalme/IocPerformance
Performance comparison of .NET IoC containers
DevTeam/Pure.DI
Pure DI for .NET
dsafa/audio-band
Display and control songs from the Windows taskbar
SharpRepository/SharpRepository
C# Generic Repository for use with Entity Framework, RavenDB and more with built-in caching options.
seesharper/LightInject
An ultra lightweight IoC container
bilal-fazlani/commanddotnet
A modern framework for building modern CLI apps
roubachof/Sharpnado.Tabs
Pure MAUI and Xamarin.Forms Tabs, including fixed tabs, scrollable tabs, bottom tabs, badge, segmented control, custom tabs, button tabs, bendable tabs...
NuKeeperDotNet/NuKeeper
Automagically update nuget packages in .NET projects
maartenba/MvcSiteMapProvider
An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
pnp/PnP-Tools
Scripts and tools for Office 365 and SharePoint - More for IT Pro's
AudioBand/AudioBand
Display and control songs from the Windows taskbar
couchbase/couchbase-lite-net
A lightweight, document-oriented (NoSQL), syncable database engine for .NET
Version Downloads Last updated
5.5.0 1,129,524 8/16/2024
5.4.6 425,798 5/24/2024
5.4.5 155,687 4/25/2024
5.4.4 900,180 1/5/2024
5.4.3 132,283 12/13/2023
5.4.3-beta1 1,944 12/11/2023
5.4.2 155,439 11/15/2023
5.4.1 3,588,202 9/29/2022
5.4.1-beta2 3,105 9/27/2022
5.4.1-beta1 2,842 9/27/2022
5.4.0 3,461,576 7/20/2022
5.3.3 1,643,005 1/29/2022
5.3.2 2,195,559 7/2/2021
5.3.1 242,139 6/13/2021
5.3.0 2,072,308 3/4/2021
5.3.0-beta2 25,894 1/8/2021
5.3.0-beta1 3,295 1/7/2021
5.2.1 1,285,346 1/13/2021
5.2.0-alpha2 12,009 12/7/2020
5.2.0-alpha1 4,854 12/5/2020
5.1.0 771,849 10/24/2020
5.0.4 96,160 10/15/2020
5.0.3 861,092 7/13/2020
5.0.2 171,487 6/28/2020
5.0.1 113,947 6/15/2020
5.0.0 1,667,410 6/11/2020
5.0.0-beta2 9,895 6/6/2020
5.0.0-beta1 9,642 6/1/2020
4.10.2 2,464,975 4/24/2020
4.9.2 454,752 4/8/2020
4.9.1 968,231 3/6/2020
4.9.0 1,548,125 1/6/2020
4.8.1 622,640 11/30/2019
4.8.0 178,908 11/23/2019
4.8.0-beta2 9,093 11/20/2019
4.8.0-beta1 9,238 11/17/2019
4.8.0-alpha3 9,499 11/17/2019
4.8.0-alpha2 8,926 11/16/2019
4.8.0-alpha1 9,004 11/16/2019
4.7.1 1,621,655 9/2/2019
4.7.0 14,917 9/1/2019
4.6.2 812,462 7/27/2019
4.6.1 167,737 7/23/2019
4.6.0 1,605,870 5/11/2019
4.6.0-beta2 12,914 5/8/2019
4.6.0-beta1 13,080 4/23/2019
4.5.3 31,208 7/23/2019
4.5.2 112,168 5/6/2019
4.5.1 709,352 3/22/2019
4.5.0 67,187 3/21/2019
4.5.0-beta1 13,231 3/14/2019
4.4.3 2,222,182 1/1/2019
4.4.2 938,551 12/1/2018
4.4.0 1,257,543 11/2/2018
4.3.0 4,123,524 5/16/2018
4.3.0-beta1 12,946 5/11/2018
4.2.3 29,233 5/15/2018
4.2.2 206,961 4/26/2018
4.2.1 285,412 4/15/2018
4.2.0 17,456 4/14/2018
4.1.3 15,336 5/15/2018
4.1.2 16,431 4/26/2018
4.1.1 184,260 4/4/2018
4.1.0 208,083 3/23/2018
4.1.0-beta1 12,685 3/16/2018
4.1.0-alpha1 31,142 2/26/2018
4.0.12 2,503,501 10/21/2017
4.0.11 599,458 9/20/2017
4.0.8 1,926,095 6/3/2017
4.0.7 334,273 5/19/2017
4.0.6 176,862 5/4/2017
4.0.3 244,115 4/19/2017
4.0.2 20,054 4/19/2017
4.0.0 649,434 3/31/2017
4.0.0-beta2 34,849 3/14/2017
4.0.0-beta1 16,477 2/19/2017
4.0.0-alpha3 17,700 1/8/2017
4.0.0-alpha2 14,019 12/30/2016
4.0.0-alpha1 13,808 11/25/2016
3.3.2 1,219,972 12/2/2016
3.3.1 48,145 11/23/2016
3.3.0 90,207 11/21/2016
3.3.0-beta2 13,057 11/10/2016
3.3.0-beta1 12,907 11/9/2016
3.3.0-alpha1 12,641 11/11/2016
3.2.7 336,098 11/3/2016
3.2.5 29,499 11/1/2016
3.2.4 1,065,283 10/26/2016
3.2.3 102,229 10/16/2016
3.2.2 506,502 8/26/2016
3.2.0 650,096 6/28/2016
3.2.0-beta2 11,837 6/28/2016
3.2.0-beta1 11,940 6/27/2016
3.2.0-alpha2 14,056 5/2/2016
3.1.5 275,828 5/22/2016
3.1.5-alpha3 12,033 5/22/2016
3.1.5-alpha2 11,689 5/22/2016
3.1.5-alpha1 10,790 5/18/2016
3.1.4 186,599 5/1/2016
3.1.3 130,323 4/12/2016
3.1.2 659,177 12/14/2015
3.1.2-alpha2 11,182 12/8/2015
3.1.2-alpha1 10,881 12/6/2015
3.1.1 160,254 11/23/2015
3.1.0 224,294 10/12/2015
3.0.7 18,042 10/10/2015
3.0.6 23,419 10/4/2015
3.0.5 182,550 9/3/2015
3.0.4 57,775 8/31/2015
3.0.3 18,697 8/27/2015
3.0.1 44,359 8/20/2015
3.0.0 34,424 8/18/2015
3.0.0-beta4 14,035 8/11/2015
3.0.0-beta3 12,928 8/3/2015
3.0.0-beta2 12,947 7/17/2015
3.0.0-beta1 16,057 6/28/2015
3.0.0-alpha2 12,726 6/21/2015
3.0.0-alpha1 12,506 6/14/2015
2.8.3 258,982 7/17/2015
2.8.1 15,778 7/16/2015
2.8.0 400,310 5/2/2015
2.8.0-beta5 7,706 5/3/2015
2.8.0-beta4 13,103 4/27/2015
2.8.0-beta3 12,804 4/26/2015
2.8.0-beta2 12,861 4/17/2015
2.8.0-beta1 13,046 4/9/2015
2.8.0-alpha1 12,860 4/5/2015
2.7.3 297,267 3/9/2015
2.7.3-alpha1 12,933 3/1/2015
2.7.2 67,242 2/12/2015
2.7.2-beta2 7,696 2/11/2015
2.7.2-beta1 7,659 2/10/2015
2.7.2-alpha2 12,842 2/12/2015
2.7.2-alpha1 7,527 2/10/2015
2.7.1 44,126 2/1/2015
2.7.1-alpha3 8,159 1/16/2015
2.7.1-alpha2 7,593 1/16/2015
2.7.1-alpha1 7,487 1/15/2015
2.7.0 62,905 1/15/2015
2.7.0-beta2 7,549 1/13/2015
2.7.0-beta1 8,512 11/12/2014
2.6.1 185,608 10/26/2014
2.6.0 111,197 10/14/2014
2.6.0-beta2 8,045 9/20/2014
2.6.0-beta1 14,818 8/30/2014
2.6.0-alpha2 7,968 8/17/2014
2.6.0-alpha1 7,672 8/17/2014
2.5.2 129,618 7/13/2014
2.5.0 305,699 3/2/2014
2.5.0-beta2 12,853 2/26/2014
2.5.0-beta1 19,293 2/9/2014
2.4.1 88,227 1/14/2014
2.4.0 51,623 12/8/2013
2.4.0-beta3 12,237 11/24/2013
2.4.0-beta2 12,118 11/5/2013
2.4.0-beta1 12,278 10/15/2013
2.4.0-alpha3 7,868 8/23/2013
2.4.0-alpha1 7,842 7/15/2013
2.3.6 82,934 10/21/2013
2.3.5 48,510 9/2/2013
2.3.2 32,740 8/31/2013
2.3.0 69,564 6/30/2013
2.3.0-beta2 11,879 6/20/2013
2.3.0-beta1 8,501 6/18/2013
2.2.3 69,968 5/4/2013
2.2.1 32,989 4/19/2013
2.2.0 15,947 4/8/2013
2.1.0 16,072 3/19/2013
2.0.2 19,739 3/10/2013
2.0.1 16,773 2/28/2013
2.0.0 25,605 2/25/2013
2.0.0-beta5 13,085 2/22/2013
2.0.0-beta4 12,306 2/17/2013
2.0.0-beta3 12,383 2/10/2013
2.0.0-beta2 12,437 2/8/2013
2.0.0-beta1 10,497 1/29/2013
2.0.0-alpha1 8,905 1/19/2013
1.6.0.12319 35,195 11/15/2012
1.5.0.12199 22,233 7/17/2012
1.4.2.12140 18,276 5/19/2012
1.4.0.12049 20,851 2/17/2012
1.3.0.11343 18,478 12/10/2011
1.2.0.11273 47,819 10/3/2011

Two new features are tested in this alpha release.
1. A new SimpleInjector.Diagnostics.dll to the core package that makes the Diagnostic API public. For more info, see here: https://simpleinjector.codeplex.com/workitem/20062.
2. .NET 4.5 interface IReadOnlyCollection<T> and IReadOnlyList<T> are supported as collection types. They are automatically injected, just as IEnumerable<T> already is. More info here: https://simpleinjector.codeplex.com/workitem/19992.