C# IoC

Open-source C# projects categorized as IoC

Top 23 C# IoC Projects

  • Autofac

    An addictive .NET IoC container

  • Project mention: Modular Dependency Injection in .NET | dev.to | 2024-03-25

    When I was building application with .NET Framework I always used libraries like Autofac and SimpleInjector for dependency injection. I really liked to create modules (Packages in SimpleInjector) to achieve higher cohesion and lower coupling in my class libraries. I made a module for every class library in which all dependencies inside of that class library were registered. Why should my web application (for example) know if MyBeautifulService in MyBeautifulClassLibrary should be transient or singleton?

  • Scrutor

    Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection

  • Project mention: Reflection -> Source Generated | /r/dotnet | 2023-06-03
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Ninject

    the ninja of .net dependency injectors

  • Castle Windsor

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

  • Simple Injector

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

  • Project mention: Modular Dependency Injection in .NET | dev.to | 2024-03-25

    When I was building application with .NET Framework I always used libraries like Autofac and SimpleInjector for dependency injection. I really liked to create modules (Packages in SimpleInjector) to achieve higher cohesion and lower coupling in my class libraries. I made a module for every class library in which all dependencies inside of that class library were registered. Why should my web application (for example) know if MyBeautifulService in MyBeautifulClassLibrary should be transient or singleton?

  • splat

    Makes things cross-platform

  • DryIoc

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

  • SaaSHub

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

    SaaSHub logo
  • StructureMap

    A Dependency Injection/Inversion of Control tool for .NET

  • stronginject

    compile time dependency injection for .NET

  • Project mention: Reflection -> Source Generated | /r/dotnet | 2023-06-03
  • TinyIoC

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

  • LightInject

    An ultra lightweight IoC container

  • Jot

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

  • Reflex

    Minimal dependency injection framework for Unity (by gustavopsantos)

  • Project mention: Another small hack I use for prototyping | /r/Unity3D | 2023-12-10

    There is also Reflex, a fast but more minimalistic solution. I haven't really heard much about people's experiences using this, so not sure how good it is in practice.

  • Lamar

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

  • DotNetCore

    .NET 8 Nuget Packages.

  • VS MEF

    Managed Extensibility Framework (MEF) implementation used by Visual Studio

  • Pure.DI

    Pure DI for .NET without frameworks!

  • Meet Grace

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

  • Stashbox

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

  • ZeroIoC

    ZeroIoC is reflectionless IoC Container for C#

  • di-framework

    ↗ A Dependency Injection framework for Unity game engine.

  • Simplify.DI

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

  • PinInject

    Simple and Intuitive Dependency Injection tool for Unity

  • 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 related posts

  • Modular Dependency Injection in .NET

    2 projects | dev.to | 25 Mar 2024
  • Optimizing .NET solution architecture for faster compilation through project decoupling

    1 project | dev.to | 5 Dec 2023
  • Reflection -> Source Generated

    6 projects | /r/dotnet | 3 Jun 2023
  • Why asp.net core is not popular like Spring boot or nodejs, although it's better than both in all aspects?

    2 projects | /r/dotnet | 23 May 2023
  • How to do dependency injection based on HttpContext values?

    1 project | /r/csharp | 21 Apr 2023
  • C# Design Patterns: Implementing the decorator pattern

    1 project | /r/csharp | 6 Apr 2023
  • "7D Mad Rogue Kart" post-mortem

    1 project | /r/roguelikedev | 12 Mar 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 10 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. 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,391
2 Scrutor 3,438
3 Ninject 2,658
4 Castle Windsor 1,503
5 Simple Injector 1,184
6 splat 967
7 DryIoc 966
8 StructureMap 911
9 stronginject 836
10 TinyIoC 828
11 LightInject 613
12 Jot 606
13 Reflex 590
14 Lamar 557
15 DotNetCore 439
16 VS MEF 407
17 Pure.DI 387
18 Meet Grace 334
19 Stashbox 134
20 ZeroIoC 39
21 di-framework 38
22 Simplify.DI 18
23 PinInject 7

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com