Instale o AutomApper ASP.NET Core MVC
Install-Package AutoMapper.Extensions.Microsoft.DependencyInjection -Version 7.0.0
Horrible Hare
Install-Package AutoMapper.Extensions.Microsoft.DependencyInjection -Version 7.0.0