4 ms·
ASPNET Core 1.0 has dependency injection built in. Is there something similar for non-aspnet core apps?
by euroclydon 10y ago
ASPNET Core 1.0 has dependency injection built in. Is there something similar for non-aspnet core apps?
- oblio 10y agoSimpleInjector works on .NET Core.
- Sacho 10y agoThere's a lot of popular nuget packages handling dependency injection, in fact, the ASP.NET docs encourage you to use one in place of their own rudimentary implementation. The ones I'm aware of that have ported to .net core are StructureMap and Autofac.
- euroclydon 10y agoThe more rudimentary the better if you ask me. DI should be a standard library feature if you ask me.