Closed aalmik closed 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>(); `
It works for me so most likely the problem is on your end.
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.
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>();
`