What DI library do you use instead?
Re:Astonishing Performance of .NET 5
by balfirevic on Thursday November 12, 2020 @12:35PM
(#25072266)
DryIoc whenever it’s up to me to choose one: https://github.com/dadhi/DryIoc
I’ve also used Autofac in projects where it was already in place - I don’t hate it but I like DryIoc better.
I find it very useful for several purposes that have nothing to do with mocking or testing.
> and have become blind to just how much extra code it generates
It doesn’t generate any extra code at all.
For the record, I think that built-in .NET DI is pretty bad. It would be better if they managed to avoid including that abstraction in the framework, even if I personally choose to use DI in most of my projects.