Trying to add AutoMapper to .NetCore1.1 - not recognising services.AddAutoMapper()
问题 I've installed the following Nuget packages into my project: Automapper AutoMapper.Extensions.Microsoft.DependencyInjection I have added the line to ConfigureServices in Startup.cs . public void ConfigureServices(IServiceCollection services) { // Add framework services. services.AddMvc(); // . . . services.AddAutoMapper(); } I'm still getting a red line under services.AddAutoMapper() . It says: The Call is ambiguous between the following methods or properties: ServiceCollectionExtensions