locked
Profile give error although I install auto mapper ? RRS feed

  • Question

  • User696604810 posted

    I work on asp.net core 2.2 when i inherit from Profile I get error

    'Profile' is a namespace but is used like a type [D:\ReactApp\Application\Application.csproj](CS0118)

    so what I do to solve issue

    Friday, August 21, 2020 1:57 AM

All replies

  • User711641945 posted

    Hi ahmedbarbary,

    That may because your project have the same name class or namespace which conflicts with AutoMapper.Profile.

    Try to specify the namespace:

    public class MappingProfile: AutoMapper.Profile

    Best Regards,

    Rena

    Friday, August 21, 2020 2:39 AM