NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #111 most downloaded on NuGet
Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity.
Latest stable
9.3.4
Last release 2 months ago
18 Sep 2026
Ships fairly regularly
a new release about every 2 months
Most releases are documented
notes for 53 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
16 years old
94 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
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
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Issue 227: breaking change additional options (and enum rather than boolean parameter) for PropertiesAutowired().
First release after moving to GitHub.
wpa81) target to NuGet package and switched to build under Profile328 (portable-net4+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1)ContainerBuilder.Update optional parameter to two separate method overloads.IModuleRegistrar interface so module registrations can be chained off of a ContainerBuilder in a fluent fashion.InjectProperties now ignores properties that contain a collection of value types (includes IList, ICollection and IReadOnlyCollection).AutoActivate/IStartable on Update.IList, ICollection, IReadOnlyList and IReadOnlyCollection to the CollectionRegistrationSource.The package name and version is written into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
Added ability to configure AnyConcreteTypeNotAlreadyRegisteredSource registrations.
builder.RegisterSource(new AnyConcreteTypeNotAlreadyRegisteredSource() .WithRegistrationsAs(rb => rb.InstancePerLifetimeScope()));
Moved Autofac.Configuration to a separate NuGet package.
Added non-generic overload for ResolveKeyed.
SingleInstance registration locks during subsequent resolves, even if the instance has already been created.DependencyResolutionException message for easier troubleshooting.ContainerBuilder.RegisterAssemblyType depends on assembly list orderAutoActivate() registration extension to flag components to be automatically resolved on container build.RegisterTypes extension equivalent to RegisterAssemblyTypes but which allows you to pass in a specific list of types rather than simply scanning assemblies.RegisterAssemblyTypes overload which gets a list of types.LimitType on Component Registrations - Affects WCF Service Resolution.IStartable to make a component implicitly activated.Container.Empty immutableConstructorParameterBinding now uses a ConcurrentDictionary for caching ConstructorInvoker instances to support multiple containers being present in the same AppDomain.Module.ThisAssembly simplifies implementation of modules that scan their own assembly.ILifetimeScope without affecting the parent scope.ContainerBuildOptions to control invocation of IStartable.Start() under unit tests.Container.Empty is now a property rather than a field (protection from inadvertent updates.ComponentRegistry.Register() is now safe for use under multiple threadsRegisterAssemblyTypes(...).PreserveExistingDefaults().ContainerBuilder.Update() on the ComponentRegistry of any.PropertiesAutowired().TypeExtensions.IsClosedTypeOf().IContainerAwareComponent introduced in 2.4 has been deprecated and morphed into a much friendlier and more useful Startable implementation.DependencyResolutionException (or a subclass) whenever fatal errors occur during composition..AsImplementedInterfaces() is now supported on non-scanning registrations.IDisposable is no longer considered a service by .AsImplementedInterfaces()..WithParameter() overload has been added, accepting predicate and value accessor like ResolvedParameter.System.Type are now public for use with scanning, e.g. Except(t => t.IsClosedTypeOf(x)).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
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
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
One column per quarter.