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.
#:package SimpleInjector@2.4.0-alpha3
                    
#: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.4.0-alpha3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SimpleInjector&version=2.4.0-alpha3&prerelease
                    
Install 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 (380)

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

Showing the top 20 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#.
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
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
SolrNet/SolrNet
Solr client for .Net
danielpalme/IocPerformance
Performance comparison of .NET IoC containers
DevTeam/Pure.DI
Pure DI for .NET
SharpRepository/SharpRepository
C# Generic Repository for use with Entity Framework, RavenDB and more with built-in caching options.
dsafa/audio-band
Display and control songs from the Windows taskbar
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...
AudioBand/AudioBand
Display and control songs from the Windows taskbar
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
Version Downloads Last Updated
5.5.0 2,461,755 8/16/2024
5.4.6 577,084 5/24/2024
5.4.5 213,467 4/25/2024
5.4.4 1,146,480 1/5/2024
5.4.3 159,014 12/13/2023
5.4.3-beta1 2,080 12/11/2023
5.4.2 204,044 11/15/2023
5.4.1 4,318,734 9/29/2022
5.4.1-beta2 3,261 9/27/2022
5.4.1-beta1 3,007 9/27/2022
5.4.0 4,717,225 7/20/2022
5.3.3 1,846,709 1/29/2022
5.3.2 2,501,377 7/2/2021
5.3.1 258,872 6/13/2021
5.3.0 2,314,206 3/4/2021
5.3.0-beta2 26,889 1/8/2021
5.3.0-beta1 3,499 1/7/2021
5.2.1 1,529,730 1/13/2021
5.2.0-alpha2 12,340 12/7/2020
5.2.0-alpha1 5,184 12/5/2020
5.1.0 813,917 10/24/2020
5.0.4 107,060 10/15/2020
5.0.3 934,281 7/13/2020
5.0.2 194,490 6/28/2020
5.0.1 121,733 6/15/2020
5.0.0 1,913,591 6/11/2020
5.0.0-beta2 10,354 6/6/2020
5.0.0-beta1 10,122 6/1/2020
4.10.2 2,688,298 4/24/2020
4.9.2 488,016 4/8/2020
4.9.1 1,011,902 3/6/2020
4.9.0 1,656,371 1/6/2020
4.8.1 670,543 11/30/2019
4.8.0 191,568 11/23/2019
4.8.0-beta2 9,558 11/20/2019
4.8.0-beta1 9,717 11/17/2019
4.8.0-alpha3 9,931 11/17/2019
4.8.0-alpha2 9,337 11/16/2019
4.8.0-alpha1 9,441 11/16/2019
4.7.1 1,885,076 9/2/2019
4.7.0 20,192 9/1/2019
4.6.2 857,576 7/27/2019
4.6.1 189,055 7/23/2019
4.6.0 1,731,800 5/11/2019
4.6.0-beta2 13,394 5/8/2019
4.6.0-beta1 13,513 4/23/2019
4.5.3 36,526 7/23/2019
4.5.2 120,656 5/6/2019
4.5.1 755,775 3/22/2019
4.5.0 88,681 3/21/2019
4.5.0-beta1 13,674 3/14/2019
4.4.3 2,406,606 1/1/2019
4.4.2 973,911 12/1/2018
4.4.0 1,324,409 11/2/2018
4.3.0 4,362,776 5/16/2018
4.3.0-beta1 13,524 5/11/2018
4.2.3 34,959 5/15/2018
4.2.2 223,673 4/26/2018
4.2.1 299,306 4/15/2018
4.2.0 24,062 4/14/2018
4.1.3 20,656 5/15/2018
4.1.2 21,813 4/26/2018
4.1.1 199,034 4/4/2018
4.1.0 219,207 3/23/2018
4.1.0-beta1 13,275 3/16/2018
4.1.0-alpha1 32,474 2/26/2018
4.0.12 2,583,016 10/21/2017
4.0.11 653,151 9/20/2017
4.0.8 2,129,106 6/3/2017
4.0.7 429,350 5/19/2017
4.0.6 270,209 5/4/2017
4.0.3 274,668 4/19/2017
4.0.2 25,747 4/19/2017
4.0.0 704,185 3/31/2017
4.0.0-beta2 35,508 3/14/2017
4.0.0-beta1 16,998 2/19/2017
4.0.0-alpha3 18,329 1/8/2017
4.0.0-alpha2 14,621 12/30/2016
4.0.0-alpha1 14,338 11/25/2016
3.3.2 1,279,418 12/2/2016
3.3.1 54,101 11/23/2016
3.3.0 98,932 11/21/2016
3.3.0-beta2 13,604 11/10/2016
3.3.0-beta1 13,431 11/9/2016
3.3.0-alpha1 13,153 11/11/2016
3.2.7 350,545 11/3/2016
3.2.5 34,957 11/1/2016
3.2.4 1,135,104 10/26/2016
3.2.3 110,811 10/16/2016
3.2.2 527,765 8/26/2016
3.2.0 707,937 6/28/2016
3.2.0-beta2 12,286 6/28/2016
3.2.0-beta1 12,403 6/27/2016
3.2.0-alpha2 14,497 5/2/2016
3.1.5 288,841 5/22/2016
3.1.5-alpha3 12,455 5/22/2016
3.1.5-alpha2 12,131 5/22/2016
3.1.5-alpha1 11,197 5/18/2016
3.1.4 196,997 5/1/2016
3.1.3 138,719 4/12/2016
3.1.2 700,256 12/14/2015
3.1.2-alpha2 11,584 12/8/2015
3.1.2-alpha1 11,289 12/6/2015
3.1.1 171,750 11/23/2015
3.1.0 243,883 10/12/2015
3.0.7 23,197 10/10/2015
3.0.6 28,546 10/4/2015
3.0.5 195,753 9/3/2015
3.0.4 67,304 8/31/2015
3.0.3 23,943 8/27/2015
3.0.1 50,447 8/20/2015
3.0.0 40,336 8/18/2015
3.0.0-beta4 14,598 8/11/2015
3.0.0-beta3 13,396 8/3/2015
3.0.0-beta2 13,391 7/17/2015
3.0.0-beta1 17,002 6/28/2015
3.0.0-alpha2 13,178 6/21/2015
3.0.0-alpha1 12,981 6/14/2015
2.8.3 283,984 7/17/2015
2.8.1 20,830 7/16/2015
2.8.0 427,788 5/2/2015
2.8.0-beta5 7,987 5/3/2015
2.8.0-beta4 13,543 4/27/2015
2.8.0-beta3 13,265 4/26/2015
2.8.0-beta2 13,340 4/17/2015
2.8.0-beta1 13,499 4/9/2015
2.8.0-alpha1 13,360 4/5/2015
2.7.3 318,710 3/9/2015
2.7.3-alpha1 13,367 3/1/2015
2.7.2 74,815 2/12/2015
2.7.2-beta2 7,955 2/11/2015
2.7.2-beta1 7,923 2/10/2015
2.7.2-alpha2 13,310 2/12/2015
2.7.2-alpha1 7,791 2/10/2015
2.7.1 50,556 2/1/2015
2.7.1-alpha3 8,446 1/16/2015
2.7.1-alpha2 7,891 1/16/2015
2.7.1-alpha1 7,756 1/15/2015
2.7.0 70,389 1/15/2015
2.7.0-beta2 7,830 1/13/2015
2.7.0-beta1 8,846 11/12/2014
2.6.1 201,464 10/26/2014
2.6.0 189,171 10/14/2014
2.6.0-beta2 8,319 9/20/2014
2.6.0-beta1 15,468 8/30/2014
2.6.0-alpha2 8,250 8/17/2014
2.6.0-alpha1 7,931 8/17/2014
2.5.2 137,781 7/13/2014
2.5.0 330,897 3/2/2014
2.5.0-beta2 13,320 2/26/2014
2.5.0-beta1 20,050 2/9/2014
2.4.1 95,057 1/14/2014
2.4.0 59,610 12/8/2013
2.4.0-beta3 12,629 11/24/2013
2.4.0-beta2 12,503 11/5/2013
2.4.0-beta1 12,679 10/15/2013
2.4.0-alpha3 8,145 8/23/2013
2.4.0-alpha1 8,151 7/15/2013
2.3.6 99,180 10/21/2013
2.3.5 55,404 9/2/2013
2.3.2 38,463 8/31/2013
2.3.0 75,396 6/30/2013
2.3.0-beta2 12,282 6/20/2013
2.3.0-beta1 8,845 6/18/2013
2.2.3 80,375 5/4/2013
2.2.1 38,555 4/19/2013
2.2.0 21,034 4/8/2013
2.1.0 21,095 3/19/2013
2.0.2 24,976 3/10/2013
2.0.1 21,821 2/28/2013
2.0.0 33,637 2/25/2013
2.0.0-beta5 13,684 2/22/2013
2.0.0-beta4 12,701 2/17/2013
2.0.0-beta3 12,767 2/10/2013
2.0.0-beta2 12,849 2/8/2013
2.0.0-beta1 10,848 1/29/2013
2.0.0-alpha1 9,247 1/19/2013
1.6.0.12319 40,621 11/15/2012
1.5.0.12199 33,250 7/17/2012
1.4.2.12140 23,839 5/19/2012
1.4.0.12049 25,867 2/17/2012
1.3.0.11343 23,481 12/10/2011
1.2.0.11273 55,904 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.