DryIoc is fast, small, full-featured IoC Container for .NET
DryIoc is fast, small, full-featured IoC Container for .NET
Designed for low-ceremony use, performance, and extensibility.
Targets: net45;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0
NuGet packages:
DryIoc.dll
— includes Compile-time DI: on first dotnet build scaffolds T4 templates; run dotnet t4 to emit a reflection-free, AOT-friendly Container.Generated.cs. See samples/MinimalWeb for a working ASP.NET Minimal API example.
DryIoc.Internal (source code with public types made internal)
Pre-release .nupkg artifacts — download from the latest CI run (Windows job -> Artifacts -> packages)
Live Documentation is created with CsToMd
Two original parts of the DryIoc are now the separate projects: FastExpressionCompiler and ImTools
The listed .MsDI packages are respective Microsoft.Extensions.DependencyInjection adapters
DryIoc 6.0.0 (.MsDI 8.0.0), MsDI 9.0.0, Grace 7.2.1 (.MsDI 7.1.0), Autofac 8.1.1 (.MsDI 10.0.0), Lamar 14.0.1
…Older versions for the comparison
DryIoc 5.0.0 (.MsDI 6.0.0), MsDI 6.0.0, Grace 7.2.1 (.MsDI 7.1.0), Autofac 6.3.0 (.MsDI 7.2.0), Lamar 8.0.1
…DryIoc 6.0.0 (.MsDI 8.0.0), MsDI 9.0.0, Grace 7.2.1 (.MsDI 7.1.0), Autofac 8.1.1 (.MsDI 10.0.0), Lamar 14.0.1
…Older versions for the comparison
DryIoc 5.0.0 (.MsDI 6.0.0), MsDI 6.0.0, Grace 7.2.1 (.MsDI 7.1.0), Autofac 6.3.0 (.MsDI 7.2.0), Lamar 8.0.1
…container.Validate().Transient, Singleton, Scoped in multiple flavors including the scoping to the specific service ancestor in the object graphuseParentReuse and to useDecorateeReuse (for decorators)preventDisposal and weaklyReferencedDryIoc implements a service resolution and injection via expression compilation and interpretation.
The interpretation is the only option for the target platforms without the System.Reflection.Emit like the Xamarin iOS.
Check the Resolution Pipeline document for more details.
Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
No open issues yet, or sync has not completed.