AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

Error mapping IReadOnlyList #121

Closed hdisma closed 4 years ago

hdisma commented 4 years ago

When I try to make the following map: CreateMap<IReadOnlyList<Customer>, IReadOnlyList<CustomerViewModel>>(); Im getting this error: System.TypeLoadException: Method 'get_Item' in type 'Proxy_System.Collections.Generic.IReadOnlyList'1[[Northwind.WebApi.ViewModels.CustomerViewModel. Im using AutoMapper.Extensions.Microsoft.DependencyInjection on .net core 3.0

hdisma commented 4 years ago

After a moment googling, i found this: https://github.com/AutoMapper/AutoMapper/issues/752#issuecomment-116696736

thanks @jbogard 👍

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.