Cannot apply indexing with [] to an expression of type IConfiguration
The _config.Item["Tokens:Key"]
is pretty much legal task, the error seems the Iconfiguration
referenced to AutoMapper.Configuration
instead of Microsoft.Extensions.Configuration
I'm following the same Check your using statements and make sure that your IConfiguration is coming from
Microsoft.Extensions.Configuration
and not from
Automapper.Configuration