.N .NET Landscape

Stashbox

Application Building Blocks
github.com/z4kn4fein/stashbox

A lightweight, fast, and portable dependency injection framework for .NET-based solutions.

dependency-injectiondependency-injection-containerdependency-injection-frameworkdiinversion-of-controliocnet-standardstashbox
GitHub stars
155
Forks
12
Open issues
15
NuGet downloads
1,659,752
latest 5.21.0
License
MIT
Language
C#
Last push
4 days ago
20 Oct 2026
Created
3 Sept 2015

Stashbox

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 release NuGet Version 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

Benchmarks


Powered by Jetbrains' Open Source License

Jetbrains