Stashbox 5.8.0
dotnet add package Stashbox --version 5.8.0
NuGet\Install-Package Stashbox -Version 5.8.0
<PackageReference Include="Stashbox" Version="5.8.0" />
paket add Stashbox --version 5.8.0
#r "nuget: Stashbox, 5.8.0"
// Install Stashbox as a Cake Addin
#addin nuget:?package=Stashbox&version=5.8.0
// Install Stashbox as a Cake Tool
#tool nuget:?package=Stashbox&version=5.8.0
Stashbox
Stashbox is a lightweight, fast, and portable dependency injection framework for .NET-based solutions. It encourages the building of loosely coupled applications and simplifies the construction of hierarchical object structures. It can be integrated easily with .NET Core, Generic Host, ASP.NET, Xamarin, and many other applications.
Github (stable) | NuGet (stable) | Fuget (stable) | NuGet (pre-release) |
---|---|---|---|
Core Attributes
- 🚀 Fast, thread-safe, and lock-free operations.
- ⚡️ Easy-to-use Fluent configuration API.
- ♻️ Small memory footprint.
- 🔄 Tracks the dependency tree for cycles.
- 🚨 Detects and warns about misconfigurations.
- 🔥 Gives fast feedback on registration/resolution issues.
Supported Platforms
- .NET 5+
- .NET Standard 2.0+
- .NET Framework 4.5+
- Mono
- Universal Windows Platform
- Xamarin (Android/iOS/Mac)
- Unity
Contact & Support
- Create an issue for bug reports and feature requests.
- Start a discussion for your questions and ideas.
- Add a ⭐️ to support the project!
Extensions
- ASP.NET Core
- ASP.NET
- OWIN
- WCF
- Hangfire
- Mocking
- Stashbox.Mocking (Moq, FakeItEasy, NSubstitute, RhinoMocks)
Benchmarks
<br>
Powered by Jetbrains' Open Source License
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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETFramework 4.5
- System.Threading.Tasks.Extensions (>= 4.5.4)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.6.1
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages (18)
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.AspNet.SignalR
ASP.NET SignalR integration for Stashbox. |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Stashbox:
Repository | Stars |
---|---|
jbogard/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
|
|
z4kn4fein/stashbox
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
|
Version | Downloads | Last updated |
---|---|---|
5.8.0 | 612 | 2/28/2023 |
5.8.0-preview-791 | 50 | 2/27/2023 |
5.7.1 | 1,733 | 1/20/2023 |
5.7.1-preview-788 | 53 | 1/20/2023 |
5.7.1-preview-787 | 53 | 1/19/2023 |
5.7.0 | 835 | 12/19/2022 |
5.7.0-preview-776 | 48 | 12/19/2022 |
5.7.0-preview-775 | 48 | 12/19/2022 |
5.6.0 | 9,709 | 12/6/2022 |
5.5.3 | 2,096 | 11/29/2022 |
5.5.2 | 3,371 | 10/14/2022 |
5.5.2-preview-768 | 64 | 10/14/2022 |
5.5.1 | 293 | 10/13/2022 |
5.5.0 | 2,859 | 10/12/2022 |
5.4.3 | 13,670 | 9/9/2022 |
5.4.3-preview-762 | 76 | 9/8/2022 |
5.4.2 | 7,931 | 6/2/2022 |
5.4.2-preview-760 | 99 | 6/1/2022 |
5.4.2-preview-759 | 84 | 5/31/2022 |
5.4.1 | 20,505 | 5/16/2022 |
5.4.0 | 5,304 | 5/3/2022 |
5.4.0-preview-755 | 81 | 5/2/2022 |
5.3.0 | 7,860 | 4/10/2022 |
5.2.1 | 13,241 | 3/12/2022 |
5.2.1-preview-745 | 79 | 3/12/2022 |
5.2.0 | 3,698 | 3/7/2022 |
5.2.0-preview-743 | 84 | 3/6/2022 |
5.2.0-preview-742 | 84 | 3/6/2022 |
5.2.0-preview-740 | 81 | 3/3/2022 |
5.2.0-preview-739 | 83 | 3/3/2022 |
5.2.0-preview-737 | 79 | 3/3/2022 |
5.2.0-preview-736 | 79 | 3/2/2022 |
5.1.0 | 395 | 2/26/2022 |
5.1.0-preview-727 | 78 | 2/26/2022 |
5.0.1 | 14,389 | 2/10/2022 |
5.0.1-preview-726 | 77 | 2/20/2022 |
5.0.1-preview-725 | 87 | 2/10/2022 |
5.0.1-preview-724 | 77 | 2/10/2022 |
5.0.1-preview-723 | 81 | 2/10/2022 |
5.0.1-preview-722 | 80 | 2/10/2022 |
5.0.1-preview-721 | 76 | 2/10/2022 |
5.0.0 | 3,296 | 2/9/2022 |
5.0.0-preview-720 | 84 | 2/9/2022 |
5.0.0-preview-719 | 83 | 2/9/2022 |
5.0.0-preview-718 | 83 | 2/9/2022 |
5.0.0-preview-717 | 82 | 2/9/2022 |
5.0.0-preview-715 | 88 | 2/9/2022 |
4.2.0-preview-690 | 95 | 1/22/2022 |
4.2.0-preview-688 | 104 | 12/24/2021 |
4.2.0-preview-687 | 98 | 12/24/2021 |
4.2.0-preview-686 | 104 | 12/24/2021 |
4.2.0-preview-685 | 110 | 12/21/2021 |
4.2.0-preview-684 | 104 | 12/20/2021 |
4.2.0-preview-683 | 105 | 12/20/2021 |
4.2.0-preview-682 | 118 | 12/6/2021 |
4.1.0 | 9,247 | 11/21/2021 |
4.1.0-preview-681 | 117 | 11/22/2021 |
4.1.0-preview-680 | 290 | 11/21/2021 |
4.1.0-preview-677 | 208 | 11/19/2021 |
4.1.0-preview-676 | 154 | 11/19/2021 |
4.0.0 | 288 | 11/18/2021 |
4.0.0-preview-675 | 121 | 11/18/2021 |
4.0.0-preview-672 | 137 | 11/18/2021 |
4.0.0-preview-671 | 226 | 11/18/2021 |
4.0.0-preview-670 | 137 | 11/18/2021 |
4.0.0-preview-669 | 99 | 11/18/2021 |
4.0.0-preview-665 | 205 | 9/10/2021 |
4.0.0-preview-664 | 180 | 9/7/2021 |
4.0.0-preview-663 | 174 | 9/2/2021 |
4.0.0-preview-662 | 171 | 9/2/2021 |
3.6.4 | 2,041 | 8/31/2021 |
3.6.4-preview-652 | 150 | 8/30/2021 |
3.6.4-preview-649 | 153 | 8/30/2021 |
3.6.4-preview-648 | 169 | 8/30/2021 |
3.6.4-preview-646 | 154 | 8/23/2021 |
3.6.4-preview-642 | 158 | 8/23/2021 |
3.6.4-preview-641 | 160 | 8/23/2021 |
3.6.3 | 12,184 | 5/26/2021 |
3.6.3-preview-640 | 179 | 5/26/2021 |
3.6.3-preview-639 | 176 | 5/20/2021 |
3.6.3-preview-638 | 163 | 5/20/2021 |
3.6.3-preview-636 | 213 | 5/19/2021 |
3.6.2 | 2,082 | 4/23/2021 |
3.6.2-preview-635 | 189 | 4/23/2021 |
3.6.2-preview-634 | 191 | 4/16/2021 |
3.6.1 | 4,365 | 3/16/2021 |
3.6.1-preview-633 | 174 | 3/16/2021 |
3.6.1-preview-632 | 179 | 3/16/2021 |
3.6.0 | 731 | 2/25/2021 |
3.6.0-preview-631 | 183 | 2/25/2021 |
3.5.1 | 560 | 2/19/2021 |
3.5.1-preview-630 | 185 | 2/19/2021 |
3.5.1-preview-629 | 192 | 2/19/2021 |
3.5.1-preview-628 | 187 | 2/19/2021 |
3.5.1-preview-627 | 186 | 2/19/2021 |
3.5.1-preview-626 | 183 | 2/19/2021 |
3.5.1-preview-625 | 190 | 2/19/2021 |
3.5.1-preview-624 | 174 | 2/19/2021 |
3.5.1-preview-623 | 190 | 2/19/2021 |
3.5.1-preview-622 | 175 | 2/19/2021 |
3.5.1-preview-621 | 194 | 2/19/2021 |
3.5.1-preview-620 | 187 | 2/19/2021 |
3.5.1-preview-617 | 216 | 2/7/2021 |
3.5.0 | 5,451 | 1/29/2021 |
3.5.0-preview-616 | 200 | 1/26/2021 |
3.5.0-preview-615 | 208 | 1/26/2021 |
3.5.0-preview-614 | 203 | 1/25/2021 |
3.5.0-preview-613 | 226 | 1/25/2021 |
3.5.0-preview-612 | 240 | 1/25/2021 |
3.5.0-preview-611 | 193 | 1/25/2021 |
3.5.0-preview-610 | 210 | 1/24/2021 |
3.5.0-preview-609 | 213 | 1/24/2021 |
3.4.1-preview-608 | 203 | 1/24/2021 |
3.4.1-preview-606 | 243 | 1/23/2021 |
3.4.1-preview-605 | 260 | 1/23/2021 |
3.4.1-preview-604 | 258 | 1/22/2021 |
3.4.0 | 9,020 | 11/15/2020 |
3.4.0-preview-603 | 253 | 11/15/2020 |
3.4.0-preview-602 | 254 | 11/11/2020 |
3.3.0 | 3,712 | 11/5/2020 |
3.3.0-preview-601 | 274 | 11/4/2020 |
3.2.9 | 2,455 | 11/2/2020 |
3.2.9-preview-600 | 375 | 10/31/2020 |
3.2.9-preview-599 | 266 | 10/29/2020 |
3.2.8 | 4,349 | 10/17/2020 |
3.2.8-preview-596 | 259 | 10/17/2020 |
3.2.8-preview-595 | 271 | 10/17/2020 |
3.2.7 | 899 | 10/16/2020 |
3.2.7-preview-594 | 256 | 10/16/2020 |
3.2.6 | 904 | 10/16/2020 |
3.2.6-preview-593 | 264 | 10/15/2020 |
3.2.6-preview-592 | 284 | 10/15/2020 |
3.2.6-preview-591 | 288 | 10/15/2020 |
3.2.5 | 1,435 | 10/12/2020 |
3.2.5-preview-590 | 354 | 10/12/2020 |
3.2.5-preview-589 | 299 | 9/14/2020 |
3.2.5-preview-588 | 307 | 9/14/2020 |
3.2.4 | 7,565 | 7/22/2020 |
3.2.4-preview-587 | 298 | 7/22/2020 |
3.2.4-preview-586 | 292 | 7/22/2020 |
3.2.4-preview-585 | 290 | 7/22/2020 |
3.2.2 | 1,754 | 7/21/2020 |
3.2.2-preview-584 | 297 | 7/21/2020 |
3.2.2-preview-583 | 308 | 7/21/2020 |
3.2.2-preview-582 | 332 | 7/18/2020 |
3.2.2-preview-581 | 325 | 7/18/2020 |
3.2.2-preview-580 | 334 | 7/17/2020 |
3.2.2-preview-579 | 361 | 7/17/2020 |
3.2.2-preview-578 | 369 | 7/17/2020 |
3.2.2-preview-577 | 286 | 7/17/2020 |
3.2.1 | 91,586 | 7/9/2020 |
3.2.1-preview-576 | 413 | 7/9/2020 |
3.2.1-preview-575 | 362 | 7/9/2020 |
3.2.1-preview-574 | 364 | 7/9/2020 |
3.2.1-preview-573 | 312 | 7/9/2020 |
3.2.1-preview-572 | 309 | 7/9/2020 |
3.2.1-preview-571 | 330 | 7/9/2020 |
3.2.1-preview-570 | 404 | 7/9/2020 |
3.2.1-preview-569 | 370 | 7/9/2020 |
3.2.1-preview-568 | 461 | 6/30/2020 |
3.2.1-preview-567 | 322 | 6/30/2020 |
3.2.0 | 17,941 | 6/29/2020 |
3.2.0-preview-565 | 351 | 6/29/2020 |
3.2.0-preview-564 | 291 | 6/29/2020 |
3.2.0-preview-563 | 291 | 6/29/2020 |
3.2.0-preview-562 | 290 | 6/29/2020 |
3.1.2 | 1,977 | 6/22/2020 |
3.1.2-preview-560 | 387 | 6/22/2020 |
3.1.2-preview-556 | 355 | 6/22/2020 |
3.1.2-preview-555 | 526 | 6/11/2020 |
3.1.2-preview-554 | 325 | 6/11/2020 |
3.1.2-preview-553 | 317 | 6/11/2020 |
3.1.1 | 630 | 6/11/2020 |
3.1.1-preview-552 | 306 | 6/11/2020 |
3.1.1-preview-551 | 319 | 6/10/2020 |
3.1.1-preview-550 | 289 | 6/10/2020 |
3.1.1-preview-549 | 305 | 6/9/2020 |
3.1.1-preview-548 | 314 | 6/9/2020 |
3.1.0 | 3,934 | 6/8/2020 |
3.1.0-preview-547 | 335 | 6/8/2020 |
3.1.0-preview-546 | 364 | 6/8/2020 |
3.1.0-preview-545 | 346 | 6/5/2020 |
3.1.0-preview-544 | 330 | 6/5/2020 |
3.1.0-preview-543 | 384 | 6/4/2020 |
3.1.0-preview-542 | 386 | 6/4/2020 |
3.1.0-preview-541 | 377 | 6/3/2020 |
3.1.0-preview-540 | 368 | 6/1/2020 |
3.1.0-preview-539 | 296 | 6/1/2020 |
3.1.0-preview-538 | 314 | 6/1/2020 |
3.1.0-preview-537 | 499 | 5/23/2020 |
3.1.0-preview-536 | 580 | 4/30/2020 |
3.1.0-preview-535 | 343 | 4/28/2020 |
3.1.0-preview-534 | 377 | 4/24/2020 |
3.1.0-preview-533 | 330 | 4/22/2020 |
3.1.0-preview-532 | 393 | 4/17/2020 |
3.1.0-preview-531 | 549 | 4/5/2020 |
3.1.0-preview-530 | 440 | 4/3/2020 |
3.1.0-preview-529 | 353 | 4/3/2020 |
3.1.0-preview-528 | 371 | 4/3/2020 |
3.1.0-preview-527 | 364 | 4/3/2020 |
3.1.0-preview-526 | 391 | 4/3/2020 |
3.1.0-preview-525 | 342 | 4/3/2020 |
2.9.0-preview-524 | 413 | 3/24/2020 |
2.9.0-preview-523 | 351 | 3/19/2020 |
2.9.0-preview-522 | 331 | 3/18/2020 |
2.9.0-preview-521 | 526 | 3/2/2020 |
2.9.0-preview-520 | 340 | 3/2/2020 |
2.9.0-preview-519 | 381 | 2/28/2020 |
2.9.0-preview-518 | 378 | 2/19/2020 |
2.9.0-preview-517 | 364 | 2/18/2020 |
2.9.0-preview-516 | 403 | 2/17/2020 |
2.9.0-preview-515 | 386 | 2/13/2020 |
2.9.0-preview-514 | 325 | 2/13/2020 |
2.8.9 | 5,419 | 1/15/2020 |
2.8.9-preview-513 | 399 | 1/15/2020 |
2.8.8 | 5,169 | 1/15/2020 |