Cannot resolve ILogger<T> Simple Injector ASP.NET Core 2.0
问题 We use Simple Injector in ASP.NET Core application. Recently we've decided to use Serilog for logging purposes. Configuration was done in Program.cs as stated in their documentation. Then, in order to make Simple Injector able to resolve ILoggerFactory I did something like this: public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(); // As per my understanding, we force SimpleInjector to use //