Is ABP already compatible with latest AutoMapper 5?
Did not try AutoMapper 5 yet. Abp.AutoMapper package maybe incompatible. But you don't have to use it. ABP has no any dependency to a mapping library actually.
Upgraded to AutoMapper's latest version, 5.1.1: https://github.com/aspnetboilerplate/aspnetboilerplate/commit/392cf6ceb8983749559f36f46a84d67d96b4262d
This was a breaking change for existing applications. To fix it, we should make custom mappings like that:
C#
Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => {
//Add mappings. Example:
//configuration.CreateMap<MySourceClass, MyDestClass>();
});
No chanege for who uses AbpAutoMap, AbpAutoMapFrom and AbpAutoMapTo attributes.
Also, DynamicMap is not used in AutoMapper anymore (see https://github.com/AutoMapper/AutoMapper/issues/1546#issuecomment-233979992). If you need it, just use configuration.CreateMissingTypeMaps = true; in the code above.
Most helpful comment
This was a breaking change for existing applications. To fix it, we should make custom mappings like that:
C# Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { //Add mappings. Example: //configuration.CreateMap<MySourceClass, MyDestClass>(); });No chanege for who uses AbpAutoMap, AbpAutoMapFrom and AbpAutoMapTo attributes.
Also, DynamicMap is not used in AutoMapper anymore (see https://github.com/AutoMapper/AutoMapper/issues/1546#issuecomment-233979992). If you need it, just use
configuration.CreateMissingTypeMaps = true;in the code above.