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.

  • 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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • 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

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). The latest post mention was on 2024-03-25.

C# IoC related posts

Index

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

Project Stars
1 Autofac 4,370
2 Scrutor 3,402
3 Ninject 2,655
4 Castle Windsor 1,503
5 Simple Injector 1,180
6 splat 965
7 DryIoc 960
8 StructureMap 911
9 stronginject 836
10 TinyIoC 828
11 LightInject 613
12 Jot 597
13 Reflex 576
14 Lamar 550
15 DotNetCore 432
16 VS MEF 402
17 Pure.DI 371
18 Meet Grace 334
19 Stashbox 133
20 ZeroIoC 39
21 di-framework 38
22 Simplify.DI 18
23 PinInject 7
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com