Discover and explore top open-source AI tools and projects—updated daily.
DevTeamCompile-time DI code generation for .NET
Top 44.4% on SourcePulse
Pure.DI is a compile-time dependency injection (DI) code generator for .NET, designed to produce highly efficient and robust DI solutions. It targets .NET developers, from those working with legacy .NET Framework 2.0 to modern .NET versions, who require zero-overhead DI with compile-time safety. The primary benefit is eliminating runtime DI overhead and catching wiring errors before execution, ensuring production-ready code.
How It Works
Pure.DI operates by generating C# source code at compile time. It analyzes the object graph and constructor dependencies, producing lean, efficient code that is functionally equivalent to manual DI implementations. By avoiding reflection and dynamic instantiation, it achieves zero runtime overhead. Crucially, all dependency validation, including checks for missing dependencies and cyclic references, occurs during compilation, preventing runtime crashes and providing immediate feedback to developers.
Quick Start & Requirements
Pure.DI NuGet package.dotnet new install Pure.DI.Templates followed by dotnet new di to create a new project.Highlighted Details
Maintenance & Community
The project is maintained by DevTeam. Specific details on community engagement (e.g., Discord, Slack) or notable contributors are not detailed in the provided README.
Licensing & Compatibility
License information is not explicitly stated in the provided README.
Limitations & Caveats
No specific limitations or caveats are mentioned in the provided documentation. The project appears to be a mature and robust DI solution.
16 hours ago
Inactive
AngoraFuzzer