How extrys/injekko works
Project type and purpose
• Injekko is an open-source, compile-time dependency-injection framework for Unity.
• It uses a Roslyn Source Generator (InjekkoGen) to scan your code for custom attributes (InjekAttribute) defined in the InjekkoBinding library, auto-generates strongly-typed resolver code, and compiles it into your Assembly. A small “playground” app demonstrates and tests the runtime behavior.
File structure
• InjekkoBinding/
– A .NET Standard 2.0 class-library exposing [Injek] attributes and container base classes (Service Locator contexts: global, scene, object).
• InjekkoGen/
– A Roslyn Source Generator project (.NET 8.0 + .NETStandard2.0) that references DependencyInjectionGeneratorLib.
– Contains code (InjekkoSourceGenerator.cs) that runs at compile time, finds InjekAttribute usages, and emits generated resolver classes as C# files.
• InjekkoPlayground/
– A .NET 6.0 console/Unity-like mockup app.
– Under Containers/ and EngineMockup/ it uses generated code to wire up dependencies and simulate Unity scenes and game objects.
– Logs/ shows output of generated code and runtime scene logs.
README for additional insights
• Highlights zero‐reflection, Roslyn code generation, Unity integration, multiple contexts, and a playground.