C# IoC

Open-source C# projects categorized as IoC

Top 23 C# IoC Projects

  1. Autofac

    An addictive .NET IoC container

    Project mention: Mastering Dependency Injection: Effective Ways to Inject Dependencies in C# | dev.to | 2025-05-25

    Autofac Documentation

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Scrutor

    Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection

    Project mention: Enhancing Services with the Decorator Pattern in C# | dev.to | 2025-01-25

    To address the challenge, I decided to implement the decorator pattern by enhancing the existing email service with the opt-out functionality. During my research, I came across an interesting NuGet package called Scrutor, which provides an excellent abstraction for the decorator pattern. This package allowed me to implement the solution in an elegant way with minimum effort.

  4. Ninject

    the ninja of .net dependency injectors

  5. Castle Windsor

    Castle Windsor is a best of breed, mature Inversion of Control container available for .NET

  6. Simple Injector

    An easy, flexible, and fast Dependency Injection library that promotes best practice to steer developers towards the pit of success.

  7. DryIoc

    DryIoc is fast, small, full-featured IoC Container for .NET

  8. splat

    Makes things cross-platform

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. StructureMap

    A Dependency Injection/Inversion of Control tool for .NET

  11. Reflex

    Minimal dependency injection framework for Unity (by gustavopsantos)

  12. stronginject

    compile time dependency injection for .NET

  13. TinyIoC

    An easy to use, hassle free, Inversion of Control Container for small projects, libraries and beginners alike.

  14. Pure.DI

    Pure DI for .NET

    Project mention: Pure DI: depencency injection for .NET without reflection | news.ycombinator.com | 2024-11-13
  15. Jot

    Jot is a library for persisting and applying .NET application state. (by anakic)

  16. LightInject

    An ultra lightweight IoC container

  17. Lamar

    Fast Inversion of Control Tool and Successor to StructureMap (by JasperFx)

  18. DotNetCore

    .NET Nuget Packages.

  19. VS MEF

    Managed Extensibility Framework (MEF) implementation used by Visual Studio

  20. Meet Grace

    Grace is a feature rich dependency injection container library (by ipjohnson)

  21. Stashbox

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

  22. ZeroIoC

    ZeroIoC is reflectionless IoC Container for C#

  23. di-framework

    ↗ A Dependency Injection framework for Unity game engine.

  24. ManualDi

    Lightweight C# dependency injection framework without reflection. Works seamlessly in both Unity3d and plain C# projects

  25. Simplify.DI

    Simplify is an open-source set of lightweight .NET libraries that provide infrastructure for your applications. DI and mocking friendly. (by SimplifyNet)

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C# IoC discussion

Log in or Post with

C# IoC related posts

  • Mastering Dependency Injection: Effective Ways to Inject Dependencies in C#

    1 project | dev.to | 25 May 2025
  • Enhancing Services with the Decorator Pattern in C#

    1 project | dev.to | 25 Jan 2025
  • Scrutor VS DeviantCoding - a user suggested alternative

    2 projects | 25 Jan 2025
  • Registerly: Simplifying Dependency Injection with Attributes

    2 projects | dev.to | 23 Dec 2024
  • Pure DI: depencency injection for .NET without reflection

    1 project | news.ycombinator.com | 13 Nov 2024
  • Pure.DI VS jab - a user suggested alternative

    2 projects | 24 Sep 2024
  • Dependency Injection in .NET with Microsoft.Extensions.DependencyInjection and Scrutor

    1 project | dev.to | 7 Jul 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 22 Jun 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source IoC projects in C#? This list will help you:

# Project Stars
1 Autofac 4,580
2 Scrutor 3,972
3 Ninject 2,685
4 Castle Windsor 1,536
5 Simple Injector 1,240
6 DryIoc 1,074
7 splat 988
8 StructureMap 906
9 Reflex 875
10 stronginject 853
11 TinyIoC 834
12 Pure.DI 668
13 Jot 640
14 LightInject 627
15 Lamar 591
16 DotNetCore 471
17 VS MEF 450
18 Meet Grace 339
19 Stashbox 147
20 ZeroIoC 47
21 di-framework 40
22 ManualDi 39
23 Simplify.DI 18

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com