Stashbox 3.5.0-preview-613

This is a prerelease version of Stashbox.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Stashbox --version 3.5.0-preview-613
                    
NuGet\Install-Package Stashbox -Version 3.5.0-preview-613
                    
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="Stashbox" Version="3.5.0-preview-613" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Stashbox" Version="3.5.0-preview-613" />
                    
Directory.Packages.props
<PackageReference Include="Stashbox" />
                    
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 Stashbox --version 3.5.0-preview-613
                    
#r "nuget: Stashbox, 3.5.0-preview-613"
                    
#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.
#:package Stashbox@3.5.0-preview-613
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Stashbox&version=3.5.0-preview-613&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Stashbox&version=3.5.0-preview-613&prerelease
                    
Install as a Cake Tool

Stashbox is a lightweight, fast and portable dependency injection framework for .NET based solutions.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 was computed.  netstandard1.2 was computed.  netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (17)

Showing the top 5 NuGet packages that depend on Stashbox:

Package Downloads
Stashbox.Extensions.DependencyInjection

A Microsoft.Extensions.DependencyInjection extension, which allows Stashbox to be configured as the default service provider.

Stashbox.Moq

Moq auto mocking integration for Stashbox.

Stashbox.Web.WebApi

ASP.NET Web API integration for Stashbox.

Stashbox.Web.Mvc

ASP.NET MVC integration for Stashbox.

Stashbox.NSubstitute

NSubstitute auto mocking integration for Stashbox.

GitHub repositories (3)

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

Repository Stars
LuckyPennySoftware/MediatR
Simple, unambitious mediator implementation in .NET
structuremap/structuremap
A Dependency Injection/Inversion of Control tool for .NET
danielpalme/IocPerformance
Performance comparison of .NET IoC containers
Version Downloads Last Updated
5.17.1 35,918 2/18/2025
5.17.0 34,903 12/20/2024
5.16.0 22,644 8/21/2024
5.15.0 12,179 7/26/2024
5.14.1 44,745 4/8/2024
5.14.0 26,833 12/15/2023
5.13.0 1,598 11/18/2023
5.13.0-preview-828 214 9/26/2023
5.13.0-preview-825 212 9/15/2023
5.12.2 16,829 9/5/2023
5.12.1 251 9/5/2023
5.12.1-preview-822 196 9/4/2023
5.12.0-preview-821 203 9/2/2023
5.11.1 325 8/16/2023
5.11.0 14,482 6/21/2023
5.11.0-preview-817 213 6/21/2023
5.10.2 2,302 6/13/2023
5.10.2-preview-815 222 6/13/2023
5.10.1 2,016 6/9/2023
5.10.1-preview-814 229 6/9/2023
5.10.1-preview-812 234 6/9/2023
5.10.1-preview-811 253 6/7/2023
5.10.0 7,273 6/5/2023
5.10.0-preview-808 231 6/4/2023
5.9.1 3,510 6/1/2023
5.9.1-preview-807 226 6/1/2023
5.9.0 3,013 5/31/2023
5.9.0-preview-803 226 5/31/2023
5.8.2 6,801 3/29/2023
5.8.2-preview-795 253 3/29/2023
5.8.1 2,987 3/29/2023
5.8.1-preview-793 240 3/28/2023
5.8.0 33,502 2/28/2023
5.8.0-preview-791 256 2/27/2023
5.7.1 7,351 1/20/2023
5.7.1-preview-788 247 1/20/2023
5.7.1-preview-787 275 1/19/2023
5.7.0 3,442 12/19/2022
5.7.0-preview-776 241 12/19/2022
5.7.0-preview-775 227 12/19/2022
5.6.0 13,505 12/6/2022
5.5.3 13,982 11/29/2022
5.5.2 7,377 10/14/2022
5.5.2-preview-768 289 10/14/2022
5.5.1 587 10/13/2022
5.5.0 6,383 10/12/2022
5.4.3 17,489 9/9/2022
5.4.3-preview-762 301 9/8/2022
5.4.2 17,090 6/2/2022
5.4.2-preview-760 317 6/1/2022
5.4.2-preview-759 299 5/31/2022
5.4.1 27,957 5/16/2022
5.4.0 12,866 5/3/2022
5.4.0-preview-755 311 5/2/2022
5.3.0 28,599 4/10/2022
5.2.1 16,888 3/12/2022
5.2.1-preview-745 299 3/12/2022
5.2.0 7,482 3/7/2022
5.2.0-preview-743 313 3/6/2022
5.2.0-preview-742 312 3/6/2022
5.2.0-preview-740 298 3/3/2022
5.2.0-preview-739 281 3/3/2022
5.2.0-preview-737 288 3/3/2022
5.2.0-preview-736 304 3/2/2022
5.1.0 717 2/26/2022
5.1.0-preview-727 302 2/26/2022
5.0.1 17,983 2/10/2022
5.0.1-preview-726 287 2/20/2022
5.0.1-preview-725 330 2/10/2022
5.0.1-preview-724 300 2/10/2022
5.0.1-preview-723 310 2/10/2022
5.0.1-preview-722 277 2/10/2022
5.0.1-preview-721 310 2/10/2022
5.0.0 6,882 2/9/2022
5.0.0-preview-720 317 2/9/2022
5.0.0-preview-719 315 2/9/2022
5.0.0-preview-718 261 2/9/2022
5.0.0-preview-717 294 2/9/2022
5.0.0-preview-715 308 2/9/2022
4.2.0-preview-690 328 1/22/2022
4.2.0-preview-688 320 12/24/2021
4.2.0-preview-687 299 12/24/2021
4.2.0-preview-686 327 12/24/2021
4.2.0-preview-685 319 12/21/2021
4.2.0-preview-684 293 12/20/2021
4.2.0-preview-683 334 12/20/2021
4.2.0-preview-682 320 12/6/2021
4.1.0 24,226 11/21/2021
4.1.0-preview-681 352 11/22/2021
4.1.0-preview-680 503 11/21/2021
4.1.0-preview-677 438 11/19/2021
4.1.0-preview-676 370 11/19/2021
4.0.0 581 11/18/2021
4.0.0-preview-675 354 11/18/2021
4.0.0-preview-672 357 11/18/2021
4.0.0-preview-671 459 11/18/2021
4.0.0-preview-670 382 11/18/2021
4.0.0-preview-669 313 11/18/2021
4.0.0-preview-665 427 9/10/2021
4.0.0-preview-664 346 9/7/2021
4.0.0-preview-663 380 9/2/2021
4.0.0-preview-662 399 9/2/2021
3.6.4 2,347 8/31/2021
3.6.4-preview-652 359 8/30/2021
3.6.4-preview-649 357 8/30/2021
3.6.4-preview-648 379 8/30/2021
3.6.4-preview-646 375 8/23/2021
3.6.4-preview-642 370 8/23/2021
3.6.4-preview-641 362 8/23/2021
3.6.3 15,699 5/26/2021
3.6.3-preview-640 398 5/26/2021
3.6.3-preview-639 352 5/20/2021
3.6.3-preview-638 345 5/20/2021
3.6.3-preview-636 411 5/19/2021
3.6.2 2,375 4/23/2021
3.6.2-preview-635 413 4/23/2021
3.6.2-preview-634 392 4/16/2021
3.6.1 7,911 3/16/2021
3.6.1-preview-633 391 3/16/2021
3.6.1-preview-632 405 3/16/2021
3.6.0 1,044 2/25/2021
3.6.0-preview-631 418 2/25/2021
3.5.1 880 2/19/2021
3.5.1-preview-630 418 2/19/2021
3.5.1-preview-629 446 2/19/2021
3.5.1-preview-628 432 2/19/2021
3.5.1-preview-627 396 2/19/2021
3.5.1-preview-626 418 2/19/2021
3.5.1-preview-625 386 2/19/2021
3.5.1-preview-624 421 2/19/2021
3.5.1-preview-623 415 2/19/2021
3.5.1-preview-622 409 2/19/2021
3.5.1-preview-621 426 2/19/2021
3.5.1-preview-620 400 2/19/2021
3.5.1-preview-617 439 2/7/2021
3.5.0 7,678 1/29/2021
3.5.0-preview-616 417 1/26/2021
3.5.0-preview-615 441 1/26/2021
3.5.0-preview-614 446 1/25/2021
3.5.0-preview-613 474 1/25/2021
3.5.0-preview-612 480 1/25/2021
3.5.0-preview-611 423 1/25/2021
3.5.0-preview-610 448 1/24/2021
3.5.0-preview-609 436 1/24/2021
3.4.1-preview-608 438 1/24/2021
3.4.1-preview-606 480 1/23/2021
3.4.1-preview-605 500 1/23/2021
3.4.1-preview-604 474 1/22/2021
3.4.0 16,668 11/15/2020
3.4.0-preview-603 454 11/15/2020
3.4.0-preview-602 505 11/11/2020
3.3.0 5,914 11/5/2020
3.3.0-preview-601 507 11/4/2020
3.2.9 6,602 11/2/2020
3.2.9-preview-600 609 10/31/2020
3.2.9-preview-599 470 10/29/2020
3.2.8 8,528 10/17/2020
3.2.8-preview-596 499 10/17/2020
3.2.8-preview-595 513 10/17/2020
3.2.7 2,998 10/16/2020
3.2.7-preview-594 488 10/16/2020
3.2.6 2,916 10/16/2020
3.2.6-preview-593 522 10/15/2020
3.2.6-preview-592 508 10/15/2020
3.2.6-preview-591 521 10/15/2020
3.2.5 3,492 10/12/2020
3.2.5-preview-590 590 10/12/2020
3.2.5-preview-589 530 9/14/2020
3.2.5-preview-588 550 9/14/2020
3.2.4 7,985 7/22/2020
3.2.4-preview-587 532 7/22/2020
3.2.4-preview-586 503 7/22/2020
3.2.4-preview-585 503 7/22/2020
3.2.2 3,858 7/21/2020
3.2.2-preview-584 541 7/21/2020
3.2.2-preview-583 547 7/21/2020
3.2.2-preview-582 584 7/18/2020
3.2.2-preview-581 566 7/18/2020
3.2.2-preview-580 545 7/17/2020
3.2.2-preview-579 575 7/17/2020
3.2.2-preview-578 615 7/17/2020
3.2.2-preview-577 495 7/17/2020
3.2.1 93,902 7/9/2020
3.2.1-preview-576 634 7/9/2020
3.2.1-preview-575 591 7/9/2020
3.2.1-preview-574 599 7/9/2020
3.2.1-preview-573 531 7/9/2020
3.2.1-preview-572 540 7/9/2020
3.2.1-preview-571 556 7/9/2020
3.2.1-preview-570 634 7/9/2020
3.2.1-preview-569 608 7/9/2020
3.2.1-preview-568 701 6/30/2020
3.2.1-preview-567 549 6/30/2020
3.2.0 26,767 6/29/2020
3.2.0-preview-565 600 6/29/2020
3.2.0-preview-564 514 6/29/2020
3.2.0-preview-563 521 6/29/2020
3.2.0-preview-562 511 6/29/2020
3.1.2 4,545 6/22/2020
3.1.2-preview-560 628 6/22/2020
3.1.2-preview-556 576 6/22/2020
3.1.2-preview-555 755 6/11/2020
3.1.2-preview-554 561 6/11/2020
3.1.2-preview-553 547 6/11/2020
3.1.1 940 6/11/2020
3.1.1-preview-552 531 6/11/2020
3.1.1-preview-551 535 6/10/2020
3.1.1-preview-550 524 6/10/2020
3.1.1-preview-549 547 6/9/2020
3.1.1-preview-548 541 6/9/2020
3.1.0 8,561 6/8/2020
3.1.0-preview-547 552 6/8/2020
3.1.0-preview-546 609 6/8/2020
3.1.0-preview-545 596 6/5/2020
3.1.0-preview-544 577 6/5/2020
3.1.0-preview-543 624 6/4/2020
3.1.0-preview-542 594 6/4/2020
3.1.0-preview-541 612 6/3/2020
3.1.0-preview-540 586 6/1/2020
3.1.0-preview-539 544 6/1/2020
3.1.0-preview-538 537 6/1/2020
3.1.0-preview-537 742 5/23/2020
3.1.0-preview-536 820 4/30/2020
3.1.0-preview-535 597 4/28/2020
3.1.0-preview-534 586 4/24/2020
3.1.0-preview-533 583 4/22/2020
3.1.0-preview-532 643 4/17/2020
3.1.0-preview-531 781 4/5/2020
3.1.0-preview-530 689 4/3/2020
3.1.0-preview-529 554 4/3/2020
3.1.0-preview-528 619 4/3/2020
3.1.0-preview-527 611 4/3/2020
3.1.0-preview-526 620 4/3/2020
3.1.0-preview-525 572 4/3/2020
2.9.0-preview-524 649 3/24/2020
2.9.0-preview-523 564 3/19/2020
2.9.0-preview-522 588 3/18/2020
2.9.0-preview-521 788 3/2/2020
2.9.0-preview-520 567 3/2/2020
2.9.0-preview-519 630 2/28/2020
2.9.0-preview-518 600 2/19/2020
2.9.0-preview-517 593 2/18/2020
2.9.0-preview-516 629 2/17/2020
2.9.0-preview-515 601 2/13/2020
2.9.0-preview-514 577 2/13/2020
2.8.9 7,785 1/15/2020
2.8.9-preview-513 635 1/15/2020
2.8.8 5,585 1/15/2020

v3.5.0:
- Assembly scanning:
   - Added option to filter service types and disable self registration.
   - Recognize generic definitions.
- Added support to covariant/contravariant generic type resolution.
- Bugfix: Services with named scope lifetime were not choosed right from the registration repo.
     
v3.4.0:
- Added the core components of multitenant functionality.
- Throw `ObjectDisposedException` when the container or a scope is used after their disposal.

v3.3.0:
- Added the option to rebuild singletons in child container with dependencies overridden in it.
- Fix: Singleton instances were built when the Validate() was called, now just the expression is generated for them.

v3.2.9:
- Added the option to replace a registration only if an existing one is registered with the same type or name.

v3.2.8:
- Switch to license expression in nuget package.

v3.2.7:
- Minor bugfixes.

v3.2.6:
- The Validate() method now throws an AggregateException containing all the underlying exceptions.
- Minor bugfixes.

v3.2.5:
- Minor bugfixes.

v3.2.4:
- Added the `.WhenDecoratedServiceHas()` and `.WhenDecoratedServiceIs()` decorator configuration options.

v3.2.2:
- Added support of conditional and lifetime managed decorators #93      

v3.2.1:
- Fix: Factory resolution didn't use the built-in expression compiler.

v3.2.0:
- Added IAsyncDisposable support #90
 - It works on >=net461, >=netstandard2.0 frameworks.
 - On net461 and netstandard2.0 the usage of IAsyncDisposable interface requires the
   Microsoft.Bcl.AsyncInterfaces package, on netstandard2.1 it's part of the framework.
- Fix: resolving with custom parameter values #91
     
v3.1.2:
- Fix: IdentityServer not compatible #88
- Fix: Call interception #89
     
v3.1.1:
- Fix: String constant is not handled well by the built-in compiler #86
- Fix: Registration behaviour doesn't respect replacing #87

v3.1.0:
- Fix: Nested named resolution could cause stack overflow #74
- Fix: Improve support for Assemblies loaded into Collectible AssemblyLoadContexts #73
- Fix: Unknown type resolution does not work recursively #77
- Fix: Exception when building expressions #76
- Fix: Bad performance #79
- Fix: Expected override behaviour not working with scopes #80

v3.1.0 Breaking changes:
- `WithUniqueRegistrationIdentifiers()` option has been removed, `WithRegistrationBehavior()` has been added instead.
- Circular dependency tracking is enabled now by default, for runtime tracking the renamed `WithRuntimeCircularDependencyTracking()` option can be used.
- `WithMemberInjectionWithoutAnnotation()` container configuration option has been renamed to `WithAutoMemberInjection()`.
- `SetImplementationType()` option has been added to the registration configuration used when unknown type detected.
- Removed the `GetScopedInstace()` method from the `IResolutionScope`, they are treated as expression overrides now and consumed automatically by the container.
- Lifetimes became stateless and their API has been changed, see the docs for more info (https://github.com/z4kn4fein/stashbox/wiki/Lifetimes).
- Lifetime validation has been added:
 - Tracking dependencies that has shorter life-span than their direct or indirect parent's.
 - Tracking scoped services resolved from root.
 - The container throws a LifetimeValidationFailedException when the validation fails.
- `PerRequestLifetime` has been renamed to `PerScopedRequestLifetime`.
- `RegisterInstanceAs()` has been removed, every functionality is available on the `RegisterInstance()` methods.
- Service/Implementation type map validation has been added to the non-generic registration methods.
- `InjectionParameter` has been replaced with `KeyValuePair<string, object>`.
- `IserviceRegistration` interface has been removed, only it's implementation remained.
- Removed the legacy container extension functionality.
- Removed the support of PCL v259.