DryIoc 4.7.1

DryIoc is fast, small, full-featured IoC Container for .NET

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 3.3.0 or higher.

Install-Package DryIoc -Version 4.7.1
dotnet add package DryIoc --version 4.7.1
<PackageReference Include="DryIoc" Version="4.7.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DryIoc --version 4.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DryIoc, 4.7.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

## v4.7.1 Bug-fix release

- #365 Made.Of() Parameters incorrectly reused depending on Register() usage


## v4.7.0 Feature release

- #338 Child container disposes parent container singletons
- #355 Auto mocking feature for unit testing
- #356 Surface the FindFactoryWithTheMinReuseLifespan so it can be used together with the FactorySelector
- #357 Avoid overload ambiguity for the ScopedTo(Type) by adding the separate ScopedToService
- #358 Add and surface the Scope.Clone(withDisposables=false) to enable more ChildContainer scenarios
- #359 DynamicRegistrationsAsFallback being unnecessary called multiple times
- #360 Mark DynamicRegistrationProvider with the FactoryType (Service, Decorator or combination) to avoid unnecessary provider call and factory creation
- #363 Add CreateChild method as the basis for CreateFacade and such


## v4.6.0 Feature release

- #216 Add Rules.WithThrowIfScopedOrSingletonHasTransientDependency
- #343 Scope validation for Transient does not work as expected
- #344 Scope is disposed before parent when using facade (added Scopes and Singleton cloning into CreateFacade)
- #348 Create a child container without WithNoMoreRegistrationAllowed flag (surfacing IsRegistryChangePermitted in With method)
- #350 Wrong scoped resolve (together with MS DI rules)
- #352 Consider resolving the variance compatible open-generic the same as for collection of open-generics (added Rules.WithVarianceGenericTypesInResolve)

  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 1.3

  • .NETStandard 2.0

  • Portable Class Library (.NETFramework 4.0, Silverlight 5.0, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.
  • Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.

NuGet packages (17)

Showing the top 5 NuGet packages that depend on DryIoc:

Package Downloads
DryIoc.MefAttributedModel
DryIoc.MefAttributedModel is DryIoc extension to support Microsoft Managed Extensibility Framework for DryIoc container
DryIoc.CommonServiceLocator
Implementation of CommonServiceLocator for DryIoc container, see rationale at https://github.com/unitycontainer/commonservicelocator
DryIoc.WebApi
DryIoc extension for ASP.NET WebAPI
DryIoc.Owin
DryIoc extension for OWIN
DryIoc.WebApi.Owin
DryIoc extension for ASP.NET WebAPI and OWIN

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on DryIoc:

Repository Stars
jbogard/MediatR
Simple, unambitious mediator implementation in .NET
seesharper/LightInject
An ultra lightweight IoC container
CXWorld/CapFrameX
Frametime capture and analysis tool

Version History

Version Downloads Last updated
4.7.3 594 2/9/2021
4.7.2 703 1/16/2021
4.7.1 57 1/15/2021
4.7.0 496 1/5/2021
4.6.0 1,764 12/10/2020
4.5.2 350 12/3/2020
4.5.1 1,395 10/28/2020
4.5.0 2,667 10/12/2020
4.4.1 4,571 9/9/2020
4.4.0 231 9/4/2020
4.3.4 301 9/1/2020
4.3.3 280 8/27/2020
4.3.2 1,483 8/15/2020
4.3.1 1,176 8/7/2020
4.3.0 409 8/3/2020
4.2.5 750 7/20/2020
4.2.4 1,938 7/14/2020
4.2.3 607 7/4/2020
4.2.2 216 7/2/2020
4.2.1 1,034 6/8/2020
4.2.0 2,483 5/18/2020
4.1.4 3,942 4/3/2020
4.1.3 985 3/27/2020
4.1.2 1,612 3/12/2020
4.1.1 805 3/5/2020
4.1.0 3,958 1/20/2020
4.1.0-preview-04 278 1/5/2020
4.1.0-preview-03 376 10/3/2019
4.1.0-preview-02 397 8/25/2019
4.1.0-preview-01 6,259 8/21/2019
4.0.7 17,141 9/4/2019
4.0.6 681 8/29/2019
4.0.5 20,826 6/8/2019
4.0.5-preview-01 6,307 6/7/2019
4.0.4 10,754 5/1/2019
4.0.3 7,136 4/10/2019
4.0.2 6,887 3/30/2019
4.0.1 6,317 3/28/2019
4.0.0 8,447 3/4/2019
4.0.0-preview-02 6,355 2/22/2019
4.0.0-preview-01 12,155 12/1/2018
3.1.0-preview-07 6,561 11/20/2018
3.0.2 37,574 7/11/2018
3.0.1 6,718 7/7/2018
3.0.0 6,969 6/24/2018
3.0.0-preview-12 6,556 6/6/2018
3.0.0-preview-11 6,827 3/17/2018
3.0.0-preview-10 6,568 3/13/2018
3.0.0-preview-09 8,039 2/21/2018
3.0.0-preview-08 6,521 2/12/2018
3.0.0-preview-07 6,563 2/9/2018
3.0.0-preview-06 6,564 2/8/2018
3.0.0-preview-05 6,583 2/5/2018
3.0.0-preview-04 6,560 2/1/2018
3.0.0-preview-03 6,614 12/3/2017
3.0.0-preview-02 7,033 11/14/2017
3.0.0-preview-01 6,657 10/1/2017
2.12.10 20,589 4/11/2018
2.12.9 6,830 4/7/2018
2.12.8 7,681 3/13/2018
2.12.7 10,786 1/19/2018
2.12.6 8,161 12/21/2017
2.12.5 16,804 10/30/2017
2.12.4 13,839 10/17/2017
2.12.3 8,463 10/2/2017
2.12.2 7,268 9/17/2017
2.12.1 6,729 9/9/2017
2.12.0 7,986 9/1/2017
2.12.0-preview-01 6,527 8/29/2017
2.11.6 10,433 7/18/2017
2.11.5 6,694 7/12/2017
2.11.4 7,062 6/28/2017
2.11.3 8,659 6/1/2017
2.11.2 6,578 6/1/2017
2.11.1 6,669 5/31/2017
2.11.0 6,592 5/30/2017
2.11.0-preview-02 6,766 3/15/2017
2.11.0-preview-01 6,576 3/10/2017
2.10.7 10,052 5/3/2017
2.10.6 43,751 4/20/2017
2.10.5 7,008 4/4/2017
2.10.4 6,737 3/28/2017
2.10.3 6,723 3/25/2017
2.10.2 10,983 3/14/2017
2.10.1 20,128 2/18/2017
2.10.0 12,575 2/1/2017
2.9.7 8,073 1/12/2017
2.9.6 7,302 12/30/2016
2.9.5 6,664 12/26/2016
2.9.4 7,112 12/10/2016
2.9.3 6,726 12/8/2016
2.9.2 6,767 12/3/2016
2.9.1 8,128 11/19/2016
2.9.0 6,709 11/17/2016
2.8.5 7,254 11/2/2016
2.8.4 6,748 10/28/2016
2.8.3 16,507 10/20/2016
2.8.2 7,242 10/20/2016
2.8.1 6,627 10/19/2016
2.8.0 6,602 10/18/2016
2.8.0-preview-01 6,567 10/13/2016
2.7.1 7,813 9/1/2016
2.7.0 7,087 8/19/2016
2.6.4 7,609 7/29/2016
2.6.3 6,858 7/9/2016
2.6.2 9,314 6/13/2016
2.6.0 6,753 6/10/2016
2.5.1 7,578 6/7/2016
2.5.0 8,868 5/24/2016
2.4.3 7,162 5/7/2016
2.4.2 7,053 4/26/2016
2.4.1 6,753 4/16/2016
2.4.0 7,012 4/14/2016
2.3.0 7,624 3/30/2016
2.2.2 9,034 3/10/2016
2.2.1 6,680 3/8/2016
2.2.0 7,599 2/26/2016
2.1.3 9,194 1/17/2016
2.1.2 6,776 1/15/2016
2.1.1 7,018 1/4/2016
2.1.0 7,107 12/4/2015
2.0.2 6,906 12/1/2015
2.0.1 6,672 11/27/2015
2.0.0 36,912 11/19/2015
2.0.0-rc4build353 6,597 11/18/2015
2.0.0-rc4build352 6,599 11/17/2015
2.0.0-rc4build351 6,630 11/17/2015
2.0.0-rc4build350 6,593 11/17/2015
2.0.0-rc4build349 6,622 11/12/2015
2.0.0-rc4build348 6,592 11/12/2015
2.0.0-rc4build347 6,593 11/12/2015
2.0.0-rc4build346 6,560 11/12/2015
2.0.0-rc4build345 6,577 11/12/2015
2.0.0-rc4build344 6,606 11/7/2015
2.0.0-rc4build343 6,611 11/5/2015
2.0.0-rc4build342 6,667 11/1/2015
2.0.0-rc4build341 6,613 10/29/2015
2.0.0-rc4build340 6,581 11/12/2015
2.0.0-rc4build339 6,584 11/7/2015
2.0.0-rc4build338 6,584 11/5/2015
2.0.0-rc4build337 6,573 11/1/2015
2.0.0-rc4build336 6,586 10/29/2015
2.0.0-rc3build340 6,593 10/26/2015
2.0.0-rc3build339 6,588 10/26/2015
2.0.0-rc3build338 6,597 10/23/2015
2.0.0-rc3build337 6,618 10/20/2015
2.0.0-rc3build336 6,608 10/19/2015
2.0.0-rc3build335 6,617 10/12/2015
2.0.0-rc3build334 6,611 10/10/2015
2.0.0-rc3build333 6,607 10/6/2015
2.0.0-rc3build332 6,613 10/6/2015
2.0.0-rc3build331 6,591 10/1/2015
2.0.0-rc3build330 6,595 10/1/2015
2.0.0-rc3build329 6,590 9/30/2015
2.0.0-rc3build328 6,667 9/26/2015
2.0.0-rc3build327 6,599 9/25/2015
2.0.0-rc3build326 6,605 9/25/2015
2.0.0-rc3build325 6,595 9/25/2015
2.0.0-rc3build324 6,634 9/11/2015
2.0.0-rc3build323 6,632 9/11/2015
2.0.0-rc3build322 6,640 9/11/2015
2.0.0-rc3build321 6,599 9/11/2015
2.0.0-rc3build320 6,607 9/11/2015
2.0.0-rc3build319 6,617 9/8/2015
2.0.0-rc3build318 6,603 9/6/2015
2.0.0-rc3build317 6,619 9/3/2015
2.0.0-rc3build316 6,627 9/2/2015
2.0.0-rc3build315 6,604 8/31/2015
2.0.0-rc3build314 6,598 9/8/2015
2.0.0-rc3build313 6,610 8/29/2015
2.0.0-rc3build312 6,635 8/23/2015
2.0.0-rc3build311 6,617 8/21/2015
2.0.0-rc3build310 6,626 8/18/2015
2.0.0-rc3build309 6,576 8/12/2015
2.0.0-rc3build308 6,609 8/6/2015
2.0.0-rc3build307 6,648 8/23/2015
2.0.0-rc3build306 6,587 8/6/2015
2.0.0-rc3build304 6,570 8/4/2015
2.0.0-rc3build303 6,546 8/6/2015
2.0.0-rc3build302 6,620 8/3/2015
2.0.0-rc3build301 6,652 7/31/2015
2.0.0-rc3build300 6,784 7/28/2015
2.0.0-rc3build299 6,587 7/28/2015
2.0.0-rc3build298 6,595 7/28/2015
2.0.0-rc3build297 6,578 7/31/2015
2.0.0-rc3build296 6,571 7/28/2015
2.0.0-rc2build297 6,571 7/26/2015
2.0.0-rc2build296 6,569 7/26/2015
2.0.0-rc2build295 6,606 7/24/2015
2.0.0-rc2build294 6,582 7/24/2015
2.0.0-rc2build293 6,586 7/26/2015
2.0.0-rc2build292 6,672 7/21/2015
2.0.0-rc2build291 6,560 7/24/2015
2.0.0-rc2build289 6,658 7/21/2015
2.0.0-rc1build371 6,603 1/11/2016
2.0.0-rc1build366 6,578 1/11/2016
2.0.0-rc1build288 6,635 7/4/2015
2.0.0-rc1build287 6,593 6/19/2015
2.0.0-rc1build286 6,815 6/8/2015
2.0.0-rc1build285 6,602 6/4/2015
2.0.0-rc1build284 6,598 6/3/2015
2.0.0-rc1build283 6,650 6/1/2015
2.0.0-rc1build282 6,596 5/29/2015
2.0.0-rc1build281 6,580 5/27/2015
2.0.0-rc1build280 6,571 5/27/2015
2.0.0-rc1build279 6,587 5/21/2015
2.0.0-rc1build278 6,598 5/16/2015
2.0.0-rc1build277 6,599 5/15/2015
2.0.0-rc1build276 6,582 5/21/2015
2.0.0-rc1build275 6,565 5/16/2015
2.0.0-rc1build274 6,664 5/15/2015
2.0.0-rc1build273 6,624 5/15/2015
2.0.0-rc1build272 6,605 5/14/2015
2.0.0-rc1build271 6,628 5/14/2015
2.0.0-rc1build270 6,582 5/13/2015
2.0.0-rc1build269 6,595 5/14/2015
2.0.0-rc1build268 6,632 5/12/2015
2.0.0-rc1build267 6,600 5/10/2015
2.0.0-rc1build266 6,588 5/7/2015
2.0.0-rc1build265 6,591 5/6/2015
2.0.0-rc1build264 6,660 5/5/2015
2.0.0-rc1build263 6,595 5/1/2015
2.0.0-rc1build262 6,614 4/30/2015
2.0.0-rc1build261 6,583 4/29/2015
2.0.0-rc1build260 6,658 4/28/2015
2.0.0-rc1build259 6,616 4/21/2015
2.0.0-rc1build258 6,614 4/29/2015
2.0.0-rc1build255 6,615 4/21/2015
2.0.0-preview256 6,626 4/15/2015
2.0.0-preview255 6,632 4/14/2015
2.0.0-preview254 6,617 4/14/2015
2.0.0-preview253 6,625 4/13/2015
2.0.0-preview252 6,622 4/10/2015
2.0.0-preview251 6,628 4/7/2015
2.0.0-preview250 6,637 4/6/2015
2.0.0-preview249 6,818 4/6/2015
2.0.0-preview248 6,624 4/7/2015
2.0.0-preview247 6,629 4/6/2015
2.0.0-preview246 6,632 4/6/2015
2.0.0-preview245 6,635 4/3/2015
2.0.0-preview244 6,614 4/3/2015
2.0.0-preview243 6,633 4/3/2015
2.0.0-preview242 6,647 4/2/2015
2.0.0-preview241 6,612 3/31/2015
2.0.0-preview240 6,625 3/31/2015
2.0.0-preview239 6,668 3/30/2015
2.0.0-preview238 6,625 3/30/2015
2.0.0-preview237 6,614 3/29/2015
2.0.0-preview236 6,628 3/28/2015
2.0.0-preview235 6,644 3/27/2015
2.0.0-preview234 6,626 3/27/2015
2.0.0-preview233 6,628 3/26/2015
2.0.0-preview232 6,612 3/26/2015
2.0.0-preview231 6,656 3/25/2015
2.0.0-preview230 6,642 3/25/2015
2.0.0-preview229 6,647 3/25/2015
2.0.0-preview228 6,630 3/23/2015
2.0.0-preview227 6,638 3/23/2015
2.0.0-preview226 6,619 3/19/2015
2.0.0-preview225 6,626 3/18/2015
2.0.0-preview224 6,619 3/18/2015
2.0.0-preview223 6,637 3/18/2015
2.0.0-preview222 6,620 3/17/2015
2.0.0-preview221 6,639 3/15/2015
2.0.0-preview220 6,622 3/14/2015
2.0.0-preview219 6,601 3/13/2015
2.0.0-preview218 6,628 3/11/2015
2.0.0-preview217 6,634 3/10/2015
2.0.0-preview216 6,690 3/10/2015
2.0.0-preview215 6,636 3/10/2015
2.0.0-preview214 6,646 3/10/2015
2.0.0-preview213 6,623 3/9/2015
2.0.0-preview212 6,619 3/6/2015
2.0.0-preview211 6,606 3/4/2015
2.0.0-preview210 6,642 3/4/2015
2.0.0-preview209 6,634 3/4/2015
2.0.0-preview208 6,628 3/3/2015
2.0.0-preview207 6,619 3/3/2015
2.0.0-preview206 6,626 3/3/2015
2.0.0-preview205 6,639 3/2/2015
2.0.0-preview204 6,636 3/2/2015
2.0.0-preview203 6,808 2/26/2015
2.0.0-preview202 6,621 2/25/2015
2.0.0-preview201 6,663 2/20/2015
2.0.0-preview200 6,756 2/20/2015
2.0.0-preview199 6,650 2/20/2015
2.0.0-preview198 6,630 2/19/2015
2.0.0-preview197 6,631 2/19/2015
2.0.0-preview196 6,630 2/19/2015
2.0.0-preview195 6,649 2/19/2015
2.0.0-preview194 6,676 2/18/2015
2.0.0-preview193 6,648 2/18/2015
2.0.0-preview192 6,722 2/17/2015
2.0.0-preview191 6,703 2/17/2015
2.0.0-preview190 6,737 2/17/2015
2.0.0-preview189 6,619 2/12/2015
2.0.0-preview188 6,650 2/11/2015
2.0.0-preview187 6,733 2/11/2015
2.0.0-preview186 6,792 2/11/2015
2.0.0-preview185 6,652 2/10/2015
2.0.0-preview184 6,631 2/10/2015
2.0.0-preview183 6,641 2/10/2015
2.0.0-preview182 6,677 2/9/2015
2.0.0-preview181 6,635 2/2/2015
2.0.0-preview180 6,644 2/2/2015
2.0.0-preview179 6,623 1/31/2015
2.0.0-preview178 6,630 1/30/2015
2.0.0-preview177 6,644 1/29/2015
2.0.0-preview176 6,709 1/24/2015
2.0.0-preview175 6,632 1/24/2015
2.0.0-preview174 6,706 1/23/2015
2.0.0-preview173 6,675 1/18/2015
2.0.0-preview172 6,640 1/19/2015
2.0.0-preview171 6,719 1/16/2015
2.0.0-preview170 6,644 1/16/2015
2.0.0-preview169 6,672 1/16/2015
2.0.0-preview168 6,641 1/16/2015
2.0.0-preview167 6,715 1/16/2015
2.0.0-preview166 6,649 1/15/2015
2.0.0-preview165 6,677 1/15/2015
2.0.0-preview164 6,639 1/15/2015
2.0.0-preview163 6,677 1/15/2015
2.0.0-preview162 6,687 1/14/2015
2.0.0-preview161 6,650 1/14/2015
2.0.0-preview160 6,632 1/14/2015
2.0.0-preview159 6,644 1/14/2015
2.0.0-preview158 6,645 1/14/2015
2.0.0-preview157 6,627 1/14/2015
2.0.0-preview156 6,637 1/13/2015
2.0.0-preview155 6,653 1/13/2015
2.0.0-preview154 6,713 1/12/2015
2.0.0-preview153 6,657 1/12/2015
2.0.0-preview152 6,643 1/9/2015
2.0.0-preview151 6,645 1/9/2015
2.0.0-preview150 6,654 1/8/2015
2.0.0-preview148 6,654 1/8/2015
2.0.0-preview147 6,638 1/3/2015
2.0.0-preview146 6,670 1/3/2015
2.0.0-preview145 6,718 12/30/2014
2.0.0-preview144 6,685 12/29/2014
2.0.0-preview143 6,699 12/29/2014
2.0.0-preview142 6,684 12/23/2014
2.0.0-preview141 6,652 12/23/2014
2.0.0-preview140 6,664 12/23/2014
2.0.0-preview139 6,737 12/20/2014
2.0.0-preview138 6,637 12/20/2014
2.0.0-preview137 6,650 12/20/2014
2.0.0-preview136 6,657 12/20/2014
2.0.0-preview135 6,620 12/20/2014
2.0.0-preview133 6,757 12/18/2014
2.0.0-preview132 6,687 12/15/2014
2.0.0-preview131 6,667 12/14/2014
2.0.0-preview130 6,641 12/12/2014
2.0.0-preview129 6,672 12/12/2014
2.0.0-preview128 6,640 12/11/2014
2.0.0-preview127 6,672 12/10/2014
2.0.0-preview126 6,677 12/10/2014
2.0.0-preview125 6,658 12/8/2014
2.0.0-preview124 6,687 12/8/2014
2.0.0-preview123 6,665 12/7/2014
2.0.0-preview119 6,766 11/24/2014
2.0.0-preview118 6,718 11/21/2014
2.0.0-preview116 7,068 11/13/2014
2.0.0-preview115 6,881 11/6/2014
2.0.0-preview114 7,077 11/6/2014
2.0.0-preview113 6,857 11/5/2014
2.0.0-preview112 6,866 11/5/2014
2.0.0-preview110 7,107 11/5/2014
2.0.0-preview109 7,127 11/4/2014
2.0.0-preview108 6,975 10/31/2014
2.0.0-preview107 7,197 10/31/2014
2.0.0-preview105 7,275 10/31/2014
2.0.0-preview104 6,629 10/29/2014
2.0.0-preview103 6,643 10/27/2014
2.0.0-preview102 6,661 10/27/2014
2.0.0-preview101 6,667 10/24/2014
2.0.0-beta258 6,629 4/21/2015
2.0.0-beta254 6,684 4/20/2015
1.4.1 10,695 10/9/2014
1.4.0 7,077 9/10/2014
1.3.1 6,810 8/18/2014
1.3.0 6,940 7/16/2014
1.2.2 6,888 7/2/2014
1.2.1 6,718 6/30/2014
1.2.0 7,166 1/9/2014
1.1.1 6,745 12/26/2013
1.1.0 6,674 12/26/2013
1.0.11 6,985 12/24/2013