LightInject 6.6.1

.NET 6.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.6.2
dotnet add package LightInject --version 6.6.1
NuGet\Install-Package LightInject -Version 6.6.1
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="LightInject" Version="6.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LightInject --version 6.6.1
#r "nuget: LightInject, 6.6.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LightInject as a Cake Addin
#addin nuget:?package=LightInject&version=6.6.1

// Install LightInject as a Cake Tool
#tool nuget:?package=LightInject&version=6.6.1

An ultra lightweight Inversion of Control container for the .Net framework. See LightInject.Source for the source distribution.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.6.2

  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (174)

Showing the top 5 NuGet packages that depend on LightInject:

Package Downloads
UmbracoCms.Core The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET project.

LightInject.WebApi

An extension to the LightInject service container that enables dependency injection for Web API applications. See LightInject.WebApi.Source for the source distribution.

LightInject.Web

Enables the LightInject service container to be used in a web application by providing per web request scoped services.

LightInject.Mvc

An extension to the LightInject service container that enables dependency injection for ASP.NET MVC applications. See LightInject.Mvc.Source for the source distribution.

LightInject.Annotation

An extension to the LightInject service container that allows properties and constructor parameters to be annotated with the InjectAttribute class.

GitHub repositories (21)

Showing the top 5 popular GitHub repositories that depend on LightInject:

Repository Stars
jbogard/MediatR
Simple, unambitious mediator implementation in .NET
EasyNetQ/EasyNetQ
An easy to use .NET API for RabbitMQ
dotnetcore/AspectCore-Framework
AspectCore is an AOP-based cross platform framework for .NET Standard.
webprofusion/certify
Professional TLS/SSL Certificate Manager UI for Windows, powered by Let's Encrypt and compatible with all ACME v2 CAs. Download from certifytheweb.com
SolrNet/SolrNet
Solr client for .Net
Version Downloads Last updated
6.6.1 7,271 9/19/2022
6.6.0 1,304 9/19/2022
6.5.2 2,374 9/9/2022
6.5.1 3,914 8/24/2022
6.5.0 1,769 8/16/2022
6.4.1 78,829 2/8/2022
6.4.0 373,419 10/19/2020
6.3.6 1,358 10/16/2020
6.3.5 219,419 9/23/2020
6.3.4 79,365 6/18/2020
6.3.3 90,485 5/12/2020
6.3.2 227,386 3/9/2020
6.3.1 5,815 3/2/2020
6.3.0 9,555 2/26/2020
6.2.1 25,842 2/11/2020
6.2.0 246,802 10/18/2019
6.1.0 113,617 9/12/2019
6.0.0 28,250 8/28/2019
5.5.0 455,826 5/16/2019
5.4.0 1,564,907 1/25/2019
5.3.0 184,561 12/10/2018
5.2.1 58,721 11/10/2018
5.2.0 101,705 9/28/2018
5.1.10 12,778 9/10/2018
5.1.8 19,969 8/23/2018
5.1.7 3,613 8/21/2018
5.1.6 9,726 8/7/2018
5.1.5 22,401 7/5/2018
5.1.4 18,984 6/24/2018
5.1.3 205,001 5/8/2018
5.1.2 125,517 1/13/2018
5.1.1 100,262 10/27/2017
5.1.0 65,236 8/23/2017
5.0.3 198,427 4/27/2017
5.0.2 36,167 3/7/2017
5.0.1 21,968 2/7/2017
5.0.0 290,533 1/3/2017
5.0.0-RC1 1,419 10/5/2016
4.1.5 56,131 11/28/2016
4.1.4 22,361 11/7/2016
4.1.3 6,565 11/2/2016
4.1.2 15,320 9/30/2016
4.1.1 21,373 9/6/2016
4.1.0 82,269 8/25/2016
4.0.11 146,057 7/4/2016
4.0.10 4,378 6/28/2016
4.0.10-rc2-2 3,003 5/25/2016
4.0.10-rc2 2,712 5/24/2016
4.0.9 45,846 4/5/2016
4.0.8 35,601 2/9/2016
4.0.7 28,321 2/7/2016
4.0.6 4,825 1/28/2016
4.0.5 2,905 1/28/2016
4.0.4 7,056 1/5/2016
4.0.3 8,687 12/21/2015
4.0.2 7,140 12/10/2015
4.0.1 71,611 12/3/2015
4.0.0 84,423 8/31/2015
4.0.0-beta2 3,995 8/26/2015
4.0.0-beta 2,835 8/17/2015
3.0.2.7 197,339 5/22/2015
3.0.2.6 45,328 3/20/2015
3.0.2.5 10,181 2/10/2015
3.0.2.4 3,093 2/7/2015
3.0.2.3 4,218 1/22/2015
3.0.2.2 3,252 1/19/2015
3.0.2.1 9,780 12/12/2014
3.0.2 22,493 10/15/2014
3.0.1.9 10,150 10/2/2014
3.0.1.8 4,540 9/15/2014
3.0.1.7 20,423 6/6/2014
3.0.1.6 18,617 3/17/2014
3.0.1.5 4,295 2/21/2014
3.0.1.4 3,457 2/16/2014
3.0.1.3 3,763 2/7/2014
3.0.1.2 8,253 12/10/2013
3.0.1.1 2,980 12/10/2013
3.0.1 3,718 11/7/2013
3.0.0.9 6,436 11/5/2013
3.0.0.8 3,321 10/4/2013
3.0.0.7 3,371 9/2/2013
3.0.0.6 3,293 6/27/2013
3.0.0.5 3,184 4/22/2013
3.0.0.4 3,541 4/21/2013