NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #711 most downloaded on NuGet
Simple Injector is an easy, flexible and fast dependency injection library that uses best practice to guide your solutions toward the pit of success.
Latest stable
5.6.0
Last release 4 months ago
28 Jun 2026
Ships unpredictably
gaps range from 1 weeks to 1.7 years
Most releases are documented
notes for 49 of the last 60 stable releases
6 versions withdrawn
withdrawn after publishing
127 years old
192 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
This release can be downloaded using NuGet.
This release can be downloaded using NuGet.
The major theme of this release is to improve usability by introducing new overloads to existing registration methods and by grouping all the collection registration methods.
The grouping of collection registration methods was started in release v4.1 and had to be done gradually from minor release to minor release to prevent having too many changes at once for existing users. This release ends this refactoring phase; all methods concerning the creation, appending and registration of collections are now available by calling container.Collection., e.g. container.Collection.Register.
Overloads have been added to Collection.Create, Collection.Append, Collection.Register and GetTypesToRegister to make it easier to work with these methods. Among other things, this included the addition of generic methods and methods containing a params array.
Collection.Create(params Assembly[]) and Collection.CreateRegistration(params Assembly[]) overloadsCollection.AppendTo to Collection.Append. Old methods marked [Obsolete].Collection.Append<TService, TImplementation>() overload.RegisterConditional<TService>(Registration, Predicate<PredicateContext>) overload.GetTypesToRegister overloads.RegisterCollection overloads to Collection.Register. Old methods are marked [Obsolete].Container.Collections to Container.Collection. Old property marked [Obsolete].Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Container.Collections renamed to Container.Collection. #556.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Nothing published for this version
Simple Injector v4.2 can be downloaded using NuGet.
Simple Injector v4.2 can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Container.Collections renamed to Container.Collection. #556.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Nothing published for this version
Simple Injector v4.1 can be downloaded using NuGet.
Simple Injector v4.1 can be downloaded using NuGet.
This release contains several smaller improvements and bug fixes to the core library and its integration packages. Most prominent changes are:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
The SimpleInjector.Extensions.LifestyleScoping package has been deprecated. (fixes #299)
Simple Injector v4 is available through Nuget. For more background information about this release and a general overview, please read the blog post.
Before you upgrade to v4.0, please make sure you upgrade your application to the latest 3.x version of Simple Injector first.
ThreadScopedLifestyle added to core library as replacement of LifetimeScopeLifestyle. This is purely a name change, it behaves identical to the old LifetimeScopeLifestyle. The SimpleInjector.Extensions.LifestyleScoping package has been deprecated. (fixes #299)
AsyncScopedLifestyle added to core library as replacement of ExecutionContextScopeLifestyle. This is purely a name change, it behaves identical to the old ExecutionContextScopeLifestyle. The SimpleInjector.Extensions.ExecutionContextScoping package has been deprecated. (fixes #299)
TypesExtensions class added with useful extension methods on Type: ToFriendlyName, IsClosedTypeOf, GetClosedTypeOf and GetClosedTypesOf methods. (fixes #358)
Container.AddRegistration<TService>(Registration) method added. (fixes #367)
Lifestyle.CreateHybrid overloads added for ScopedLifestyles that remove the need to supply an lifestyleSelector delegate. (fixes #341)
InstanceProducer.FromExpression() added to simplify wrapping Expression instances. (fixes #346)
Stack trace added to exception that gets thrown when container got disposed. (fixes #368)
Clear exception is thrown when invalid Expression is passed on to
ExpressionBuildingEventArgs.Expression. (fixes #354)
Improved exception message when registering generic types with type constraints while in overriding mode. (fixes #384)
Improved exception message thrown when RegisterCollection is called twice. (fixes #378)
Registration instances will now get cached to prevent torn lifestyles. (fixes #219)
Short Circuited Dependency warning will now go off as well for transient registrations. (fixes #248)
Container.RegisterInitializer(Action<InstanceInitializationData>, Predicate<InitializationContext>) replaced with RegisterInitializer(Action<InstanceInitializationData>, Predicate<InitializerContext>) method. (fixes #348)
IConstructorResolutionBehavior.GetConstructor(Type, Type) signature changed to GetConstructor(Type). (fixes #345)
ILifestyleSelectionBehavior.SelectLifestyle(Type, Type) signature changed to SelectLifestyle(Type). (fixes #345)
IDependencyInjectionBehavior.BuildExpression method replace with GetInstanceProducer(InjectionConsumerInfo, bool) that returns an InstanceProducer (fixes #346)
IPropertySelectionBehavior.SelectProperty(Type serviceType, PropertyInfo) replaced with SelectProperty(Type implementationType, PropertyInfo) method. (fixes #348)
Lifestyle.CreateRegistration<TService, TImplementation>(Container) signature changes to CreateRegistration<TImplementation>(Container). (fixes #345)
Lifestyle.CreateRegistration(Type, Type, Container) signature changes to CreateRegistration(Type, Container). (fixed #345)
Lifestyle.CreateRegistrationCore<TService, TImplementation>(Container) signature changes to CreateRegistrationCore<TImplementation>(Container). (fixes #345)
Lifestyle.Length property made public to simplify creating custom lifestyles. (fixes #245)
ExpressionBuildingEventArgs.RegisteredServiceType removed. (fixes #348)
InjectionConsumerInfo.ServiceType removed. (fixes #348)
Registration.BuildTransientExpression<TService, TImplementation>() signature changed to BuildTransientExpression(). (fixes #345)
Registration.BuildTransientDelegate<TService, TImplementation>() signature changed to BuildTransientDelegate(). (fixes #345 / #348)
Obsolete(true) causing them to trigger. (fixes #304)Obsolete(true). (fixes #304)Obsolete(true) causing it to trigger a compile error. (fixes #304)Assembly instances should be used instead. (fixes #372)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.3.1 is a patch release that contains one bug fix.
PredicateContext.Consumer.ServiceType property contained incorrect value when the parent/consumer of a conditional registration was an open-generic registration.(fixes #333)You can download Simple Injector from NuGet.
…simplify changing the default lifestyle and the deprecation of old API that will be removed in v4.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.
The most prominent changes in Simple Injector v3.3 are the addition of the Container.Options.DefaultLifestyle property to simplify changing the default lifestyle and the deprecation of old API that will be removed in v4.
Please goto NuGet to download this release.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.2.3 is a patch release that contains one bug fix.
You can download Simple Injector from NuGet.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.2.2 is a patch release that contains two bug fixes.
You can download Simple Injector from NuGet.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v3.2 contains two main features and several smaller improvements.
Lifestyle.CreateProducer<TService>(Func<TService>, Container) to return InstanceProducer<T> instead of InstanceProducer. (fixes #244)Container.GetOrSetItem extension method to make it easier to atomically get and set items from the items dictionary. (fixes #231)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.1.4 is a patch release that contains one bug fix.
You can download Simple Injector from NuGet.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.1.3 is a patch release that contains several small improvements and bug fixes to both the core library and some of the integration libraries.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.1.2 is a patch release that fixes two small issues with scoping and adds support for DNXCORE50/CoreCLR.
Scope instances reduced after scope is disposed. (fixes #160)GetCurrentExecutionContextScope() will never return disposed scopes anymore. (fixes #159)GetCurrentLifetimeScope() will never return disposed scopes anymore. (fixes #159)Nothing published for this version
Nothing published for this version
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.1.1 is a patch release that fixes two bugs in the core library, one memory leak fix and one related to the diagnostic system.
Bug #135 caused a Container instance to keep rooted, and thus prevented the container and all its dependent object from being collected by the GC, in case decorators where applied. This causes a memory leak in applications that create an undefined number of container instances during the lifetime of the application. Do note that in case you are creating many container instances throughout the lifetime of the application, you should call Container.Dispose to prevent the memory leak.
Bug #140 prevented the container from detecting an Lifestyle Mismatch in an object graph when calling GetInstance. The problem only appeared in case Verify() was not called, or when objects were resolved that were not registered explicitly (or were registered as open-generic type, while not being referenced as closed-generic type by other registered types). Do note that this bug fix might cause an exception to be thrown in applications that seem to run correctly in v3.1.0, because the Lifestyle Mismatch was not detected before.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v3.1 adds new convenient overloads that give more control when making batch or conditional registrations and improved some exception messages.
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)GetTypesToRegister method and the Register and RegisterCollection overloads that accept a list of collections.InstanceProducer constructor to prevent incompatible Registration objects from being supplied. (fixes #52)Lifestyle.CreateRegistration and Container.AddRegistration methods now throws a clear exception explaining that open generic types can't be supplied. (fixes #126)If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.0.7 is a patch release that fixes one bug in the core library related to the diagnostic system. The bug (#131) caused a false positive Torn Lifestyle diagnostic errors in case multiple proxy decorators (i.e. a decorator that depends on a Func<{DecorateeType}> were applied to a single registration.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v.3.0.6 is a patch release that fixes two bugs in the core library related to the diagnostic system. The bugs caused diagnostic errors to be ignored in case decorators where used.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes first
Simple Injector v.3.0.5 is a patch release that fixes two bugs in the core library and fixes the assembly version number of the SimpleInjector.Extensions.ExecutionContextScoping.dll.
Container.Options.AllowOverridingRegistrations was set to true. (fixes #116)If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes first
Simple Injector v.3.0.4 is a patch release that fixes 3 bugs in the core library.
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the [v3
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes first
Simple Injector v.3.0.3 is a patch release that fixes 3 bugs in the core library.
Container.Verify() did not dispose instances registered using WebRequestLifestyle lifestyle. (fixes #95)RegisterConditional with type factory always resolved the first resolved type due to incorrect caching. (fixes #104)Nothing published for this version
Also see the blog post for a cheat sheet with the most prominent breaking changes.
Simple Injector v3 is available through Nuget, or you can download the .zip file here. For more background information about this release and migration guidance, please read the blog post. Also see the blog post for a cheat sheet with the most prominent breaking changes.
In Simple Injector v3.0 we are breaking with the past. We removed legacy methods, considerably simplified parts of the API, and added new compelling features.
What this means is that we expect that almost every developer will have to make changes to his composition root.
Before you upgrade to v3.0, please make sure you upgrade your application to the latest 2.8 version of Simple Injector first..
Most compelling new features for this release are the addition of the RegisterConditional method to make conditional and contextual registrations, and the addition of the Lifestyle.Scope Container.Options.DefaultScopedLifestyle pair to considerably simplify working with scoped lifestyles. The most prominent breaking changes are the replacement of the complete SimpleInjector.Extensions namespace and the rename of the methods RegisterSingle and RegisterAll to RegisterSingleton and RegisterCollection.
Container class now implements IDisposable to allow disposing singletons. (fixes #5)RegisterDecorator<TService, TDecorator>() methods to simplify registration of non-generic decorators (fixes #7)RegisterDecorator() as instance methods on the Container class. (fixes #7)Register(Type, Type) overloads now accept open-generic types as well. (fixes #7)Container.GetTypesToRegister method for batch registration. This method was previously hidden deep in the SimpleInjector.Extensions namespace. (fixes #7)Container.RegisterSingleton methods as replacement for RegisterSingle methods. The new method name is more intuitive. (fixes #44)Container.RegisterCollection methods as replacement for RegisterAll. The new method name is more intuitive. (fixes #42)InstanceProducer<TService> class added that inherits from InstanceProducer and adds a TService GetInstance() method. The generic Lifestyle.CreateProducer methods return an InstanceProducer<TService>. This simplifies the use of externally created instance producers. (fixes #39)DiagnosticResult.Severity property added to allow differentiating between warnings and information messages. (fixes #9)RegisterCollection(Type, IEnumerable<Registration>) now accepts open generic types as well. (fixes #22)Container.Register(Type, IEnumerable<Assembly>) and Container.RegisterCollection(Type, IEnumerable<Assembly>) overloads for batch registration. (fixes #7)RegisterConditional methods added to make conditional and contextual registrations for both non-generic and
closed-generic and open-generic types. (fixes #4)IDependencyInjectionBehavior in the same way as constructor parameters can. (fixes #59)Lifestyle.Scoped property added to simplify registration of scoped lifestyles. (fixes #38)ScopedLifestyle derivatives don't have to override Length anymore and all scoped lifestyles will have the same length. This will make the diagnostic services to treat them as the same lifestyle.container.Options.ResolveUnregisteredCollections = true;. (fixes #98)IConstructorVerificationBehavior and IConstructorVerificationBehavior made obsolete and replaced with a new IDependencyInjectionBehavior abstraction that combines the two. (fixes #2)Container(ContainerOptions) removed from Container. (fixes #40)ScopedLifestyle.WhenScopeEnds method non-virtual. (fixes #11)ScopedLifestyle.RegisterForDisposal method non-virtual. (fixes #11)ScopedLifestyle.CreateCurrentScopeProvider method abstract. (fixes #11)ScopedLifestyle.DisposeInstances method. (fixes #11)Container.InjectProperties method. (fixes #12)Container.RegisterSingle method overloads. (fixes #44)Container.RegisterAll method overloads. (fixes #42)DecoratorPredicateContext class to the SimpleInjector root namespace. (fixes #7)DecoratorContext to the SimpleInjector root namespace. (fixes #7)RegisterSingleDecorator extension methods. RegisterDecorator can be used instead. (fixed #7)RegisterAllOpenGeneric extension methods. RegisterCollection can now be used instead. (fixes #7)RegisterOpenGeneric and RegisterSingleOpenGeneric extension methods. Register can now be used instead. (fixes #7)OpenGenericPredicateContext to PredicateContext and moved it to the SimpleInjector root namespace. (fixes #7)Container.Register(Type, Type) renamed from implementation to implementationType.RegisterManyForOpenGeneric extension methods. Either Register or RegisterCollection can be used instead. (fixes #7)OpenGenericBatchRegistrationExtensions.GetTypesToRegister extension methods. Container.GetTypesToRegister can be used instead. (fixes #7)Verify() or GetInstance will always cause the container to check for lifestyle mismatches unless Container.Options.SuppressLifestyleMismatchVerification is set. (fixes #46)Verify() will now standard do diagnostic analysis. Diagnostic analysis can be suppressed by calling the Verify(VerificationOption) overload (but this is highly discouraged). (fixes #10)where TService : class added to GetAllInstances<TService>() method.PotentialLifestyleMismatchDiagnosticResult class to LifestyleMismatchDiagnosticResult. There's nothing 'potential' about that mismatch. We're actually sure that this is a mismatch. (fixes #84)UnregisteredTypeEventArgs constructor internal.LifetimeScope class. Scope can be used instead. (fixes #12)SimpleInjectorLifetimeScopeExtensions.EnableLifetimeScoping method. The method has been marked obsolete since Simple Injector 2.6. (fixes #12)WcfOperationScope class. Scope can be used instead. (fixes #12)SimpleInjectorWcfExtensions.EnablePerWcfOperationLifestyle method. The method has been marked obsolete since Simple Injector 2.6. (fixes #12)SimpleInjectorWebExtensions.RegisterForDisposal method. WebRequestLifestyle.RegisterForDisposal can be used instead. (fixes #12)SimpleInjectorMvcExtensions.RegisterMvcAttributeFilterProvider method. RegisterMvcIntegratedFilterProvider can be used instead. (fixes #12)SimpleInjectorWebApiExtensions.RegisterWebApiFilterProvider method. Please consult the Web API integration guide on how to inject dependencies into Web API filter attributes. (fixes #12)Func<object> using UnregisteredTypeEventArgs.Register(Func<object>) caused the Diagnostic system to throw a NullReferenceException. (fixes #49)RegisterOpenGeneric caused a stackoverflow.Nothing published for this version
One column per quarter.