Autofac 4.0.0-alpha1

This is a prerelease version of Autofac.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Autofac --version 4.0.0-alpha1
                    
NuGet\Install-Package Autofac -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="Autofac" Version="4.0.0-alpha1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Autofac" Version="4.0.0-alpha1" />
                    
Directory.Packages.props
<PackageReference Include="Autofac" />
                    
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 Autofac --version 4.0.0-alpha1
                    
#r "nuget: Autofac, 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=Autofac&version=4.0.0-alpha1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Autofac&version=4.0.0-alpha1&prerelease
                    
Install as a Cake Tool

Core assembly for the Autofac Inversion of Control container

Product Compatible and additional computed target framework versions.
ASP.NET aspnet50 is compatible. 
ASP.NETCore aspnetcore50 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3.1K)

Showing the top 5 NuGet packages that depend on Autofac:

Package Downloads
Autofac.Extensions.DependencyInjection

Autofac implementation of the interfaces in Microsoft.Extensions.DependencyInjection.Abstractions, the .NET Framework dependency injection abstraction.

Autofac.WebApi2

Autofac integration for ASP.NET WebAPI.

Autofac.Extras.DynamicProxy

Autofac extension for enabling AOP in conjunction with Castle.

Autofac.Mvc5

ASP.NET MVC 5 integration for Autofac.

Autofac.Extras.Moq

Autofac extension for automocking and creation of mock objects in Moq.

GitHub repositories (297)

Showing the top 20 popular GitHub repositories that depend on Autofac:

Repository Stars
Jackett/Jackett
API Support for your favorite torrent trackers
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
LuckyPennySoftware/MediatR
Simple, unambitious mediator implementation in .NET
JamesNK/Newtonsoft.Json
Json.NET is a popular high-performance JSON framework for .NET
felixse/FluentTerminal
A Terminal Emulator based on UWP and web technologies.
dotnet/yarp
A toolkit for developing high-performance HTTP reverse proxy applications.
Richasy/Bili.Uwp
适用于新系统UI的哔哩
BartoszCichecki/LenovoLegionToolkit
Lightweight Lenovo Vantage and Hotkeys replacement for Lenovo Legion laptops.
win-acme/win-acme
A simple ACME client for Windows (for use with Let's Encrypt et al.)
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
xamarin/xamarin-forms-samples
Sample apps built using the Xamarin.Forms framework
cq-panda/Vue.NetCore
(已支持sqlsugar).NetCore、.Net6、Vue2、Vue3、Vite、TypeScript、Element plus+uniapp前后端分离,全自动生成代码;支持移动端(ios/android/h5/微信小程序。http://www.volcore.xyz/
cake-build/cake
:cake: Cake (C# Make) is a cross platform build automation system.
cyanfish/naps2
Scan documents to PDF and more, as simply as possible.
fluentmigrator/fluentmigrator
Fluent migrations framework for .NET
microsurging/surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
ChangemakerStudios/Papercut-SMTP
Papercut SMTP -- The Simple Desktop Email Server
bombomby/optick
C++ Profiler For Games
kgrzybek/sample-dotnet-core-cqrs-api
Sample .NET Core REST API CQRS implementation with raw SQL and DDD using Clean Architecture.
Version Downloads Last Updated
8.3.0 965,634 5/7/2025
8.2.1 1,224,035 4/3/2025
8.2.0 3,356,968 12/17/2024
8.1.1 4,699,424 10/9/2024
8.1.0 7,770,820 9/2/2024
8.0.0 20,677,810 1/16/2024
7.1.0 8,964,770 8/11/2023
7.0.1 5,457,511 4/18/2023
7.0.0 3,729,910 3/7/2023
6.5.0 13,931,400 11/16/2022
6.4.0 32,595,829 5/25/2022
6.3.0 23,675,241 10/8/2021
6.2.0 15,577,397 4/21/2021
6.1.0 11,399,741 12/4/2020
6.0.0 35,047,471 9/28/2020
5.2.0 21,878,916 5/11/2020
5.1.4 1,584,181 4/27/2020
5.1.3 566,217 4/23/2020
5.1.2 7,022,914 2/16/2020
5.1.1 1,005,940 2/13/2020
5.1.0 1,567,924 2/12/2020
5.0.0 15,727,672 1/27/2020
4.9.4 24,795,045 8/15/2019
4.9.3 2,106,708 7/23/2019
4.9.2 12,173,561 3/24/2019
4.9.1 19,248,699 2/18/2019
4.9.0 846,510 2/10/2019
4.9.0-beta1 182,089 8/26/2018
4.8.1 25,534,035 5/9/2018
4.8.0 1,361,696 4/19/2018
4.7.1 264,786 4/17/2018
4.7.0 419,411 4/10/2018
4.6.2 13,316,022 10/16/2017
4.6.1 9,759,082 7/25/2017
4.6.0 3,145,041 5/16/2017
4.5.0 2,133,415 4/5/2017
4.4.0 1,755,544 3/1/2017
4.3.0 1,461,480 1/17/2017
4.2.1 2,187,928 11/23/2016
4.2.0 6,933,852 11/3/2016
4.1.1 1,004,878 9/22/2016
4.1.0 911,972 8/25/2016
4.0.1 4,997,593 8/24/2016
4.0.0 7,900,316 8/9/2016
4.0.0-rc3-316 278,278 7/18/2016
4.0.0-rc3-309 55,046 7/12/2016
4.0.0-rc3-293 21,216 7/6/2016
4.0.0-rc3-286 25,499 6/29/2016
4.0.0-rc3-280 45,105 6/28/2016
4.0.0-rc2-240 43,611 5/19/2016
4.0.0-rc1-177 83,895 11/19/2015
4.0.0-beta8-157 22,021 10/16/2015
4.0.0-beta7-130 24,944 9/4/2015
4.0.0-beta6-110 23,938 8/5/2015
4.0.0-beta5-90 17,984 7/21/2015
4.0.0-alpha2 20,937 5/4/2015
4.0.0-alpha1 17,839 3/12/2015
3.5.2 12,905,262 8/12/2014
3.5.0 5,156,467 6/16/2014
3.4.1 89,549 6/1/2014
3.4.0 825,364 5/9/2014
3.3.1 990,233 3/27/2014
3.3.0 433,032 12/28/2013
3.2.0 107,106 12/17/2013
3.1.5 846,567 10/29/2013
3.1.4 17,288 10/29/2013
3.1.3 144,513 10/16/2013
3.1.1 235,046 7/15/2013
3.1.0 424,875 7/12/2013
3.0.2 232,590 4/8/2013
3.0.1 254,685 2/8/2013
3.0.0 1,007,061 1/30/2013
3.0.0-beta2 21,991 12/23/2012
3.0.0-beta 21,718 11/1/2012
2.6.3.862 597,479 6/20/2012
2.6.2.859 35,497 6/7/2012
2.6.1.841 246,493 3/5/2012
2.5.2.830 189,280 8/12/2011
2.5.1.827 28,538 7/10/2011
2.4.5.724 93,272 3/12/2011
2.4.4.705 25,396 2/6/2011
2.4.3.700 20,481 1/30/2011
2.4.2.696 24,518 1/24/2011
2.3.2.632 24,507 1/7/2011
2.2.4.900 278,504 1/7/2011