So fügen Sie Automapper in .NET 6 hinzu

builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
Jay