Stashbox

March 26, 2026 ยท View on GitHub

Appveyor Build Status GitHub Workflow Status NuGet Downloads Sonar Tests Sonar Coverage Sonar Quality Gate Sourcelink

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)NuGet (pre-release)
Github releaseNuGet VersionNuget 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

Benchmarks


Powered by Jetbrains' Open Source License

Jetbrains