Bernhard Richter
Bernhard Richter
@sirphilliptubell First of all, I really appreciate the time you have put into investigating this. If you could narrow this down into a working repro that would be great although...
Hi Michal and thanks for the kind words 👍 >Since a version 5.x LightInject started using an extension to handle generic GetInstance which seems like a step back from a...
We only support sdk style project files. If you can come up with a simple repro, I'll take a look at it 👍
Thanks for reporting this.Looking into it
For now you can try this ``` var opts = new LightInject.ContainerOptions { EnablePropertyInjection = false, LogFactory = _ => (msg) => lightInjectLogger.LogDebug(msg.Message), EnableVariance = false, DefaultServiceSelector = services =>...
Could you try to set up your `Startup` according to this? https://www.lightinject.net/microsoft.aspnetcore.hosting/
Could you also post your startup.cs and program.cs?
Unable to reproduce so far. Here is my startup.cs ``` public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This...
Yeah, that would be better indeed. You find that if you pull in the `LightInject.Microsoft.AspnetCore.Hosting` package
That is the container that is used to inject services into the startup class. https://docs.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=aspnetcore-2.2 If I remember correctly they operate with two containers. One for app services used during...