install automapper asp.net core mvc

Shell
Install-Package AutoMapper.Extensions.Microsoft.DependencyInjection -Version 7.0.0

Source

Also in Shell: