I just ran into this problem and came to know that
You need to include following Nuget package AutoMapper.Extensions.Microsoft.Dependencyinjection
I just ran into this problem and came to know that
You need to include following Nuget package AutoMapper.Extensions.Microsoft.Dependencyinjection