AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

Problems targeting to net461 #52

Closed aalmik closed 6 years ago

aalmik commented 6 years ago

Targeting console application to net461 throws Could not load file or assembly error. I have tried to install following NuGet packages:

AutoMapper.Extensions.Microsoft.DependencyInjection AutoMapper Microsoft.Extensions.DependencyInjection

` // Set DI var serviceCollection = new ServiceCollection(); ConfigureService(serviceCollection); var serviceProvider = serviceCollection.BuildServiceProvider();

private static void ConfigureService(IServiceCollection serviceCollection) {
serviceCollection.AddTransient<IApplicationBusiness, ApplicationBusiness>();
`

lbargaoanu commented 6 years ago

It works for me so most likely the problem is on your end.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.