skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
556 stars 194 forks source link

AutoMapper - new Profile doesn't get picked up #110

Open apetrut opened 1 year ago

apetrut commented 1 year ago

Hi,

How can a new custom Profile class for AutoMapper get picked up at runtime and used across the app?

I have added custom dto classes and I want to use a custom Profile class to map them.

The Dtos are in these 2 projects:

Skoruba.Duende.IdentityServer.Admin.BusinessLogic.Identity and

IdentityServer.Shared

I tried to use the IdentityMapperProfile from BusinessLogic.Identity.Dtos.Identity project, but I can't see my dtos from the shared project inside the Skoruba.Duende.IdentityServer.Admin.BusinessLogic.Identity project.