SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 C# Dependency Injection Projects
-
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.
-
VContainer
The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
-
Simple Injector
An easy, flexible, and fast Dependency Injection library that promotes best practice to steer developers towards the pit of success.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
FluentValidation.Blazor
Fluent Validation-powered Blazor component for validating standard <EditForm> :milky_way: :white_check_mark:
-
Autofac.Extensions.DependencyInjection
Autofac implementation of the interfaces in Microsoft.Extensions.DependencyInjection.Abstractions, the .NET Core dependency injection abstraction.
-
xaml-code-experiences
A collection of the experiences I have collected during days of Xamarin and Wpf, while following the MVVM design pattern.
-
MailKitSimplified
Send and receive emails easily, fluently, with one line of code for each operation.
-
xunit-dependency-injection
:fire: A small library to help .NET developers leverage Microsoft's dependency injection framework in their Xunit-powered test projects
-
Simplify.DI
Simplify is an open-source set of lightweight .NET libraries that provide infrastructure for your applications. DI and mocking friendly. (by SimplifyNet)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
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?
Project mention: VContainer VS Init(args) Lite - a user suggested alternative | libhunt.com/r/VContainer | 2024-05-05
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?
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.
Project mention: I've been a Unity Dev for over 10 years. I recently joined this project that has some seasoned Unity vets but the player object looks like this. I know it mostly comes down to design patterns / choices, but does this seems like an excessive amount of components on one object? | /r/Unity3D | 2023-05-25I use Extenject in all my projects which is a bliss for these issues.
In terms of Prism, you can find a community fork of Prism. .
C# Dependency Injection related posts
-
VContainer VS Init(args) Lite - a user suggested alternative
2 projects | 5 May 2024 -
Zenject VS Init(args) Lite - a user suggested alternative
2 projects | 5 May 2024 -
Modular Dependency Injection in .NET
-
Another small hack I use for prototyping
-
Unity game architecture Part 1
-
I've been a Unity Dev for over 10 years. I recently joined this project that has some seasoned Unity vets but the player object looks like this. I know it mostly comes down to design patterns / choices, but does this seems like an excessive amount of components on one object?
-
Singleton vs Dependency Injection vs Service Locator vs Scriptable Objects
-
A note from our sponsor - SaaSHub
www.saashub.com | 9 May 2024
Index
What are some of the best open-source Dependency Injection projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | Autofac | 4,386 |
2 | Scrutor | 3,438 |
3 | VContainer | 1,691 |
4 | Simple Injector | 1,184 |
5 | jab | 1,008 |
6 | DryIoc | 966 |
7 | Device.Net | 597 |
8 | Reflex | 590 |
9 | Extenject | 472 |
10 | Pure.DI | 387 |
11 | Meet Grace | 334 |
12 | Prism.Avalonia | 262 |
13 | FluentValidation.Blazor | 233 |
14 | Autofac.Extensions.DependencyInjection | 187 |
15 | Stashbox | 134 |
16 | Maui.Plugins.PageResolver | 118 |
17 | xaml-code-experiences | 117 |
18 | Medicine | 83 |
19 | MailKitSimplified | 53 |
20 | di-framework | 38 |
21 | xunit-dependency-injection | 37 |
22 | Simplify.DI | 18 |
23 | SaveGame | 16 |
Sponsored