GitPedia

Stashbox

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

From z4kn4fein·Updated June 20, 2026·View on GitHub·

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. The project is written primarily in C#, distributed under the MIT License license, first published in 2015. Key topics include: dependency-injection, dependency-injection-container, dependency-injection-framework, di, inversion-of-control.

Latest release: 5.20.0Stashbox v5.20.0

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 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

<br>

Powered by Jetbrains' Open Source License

Jetbrains

Contributors

Showing top 6 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from z4kn4fein/stashbox via the GitHub API.Last fetched: 6/28/2026