I'm upgrading a Visual Studio 2019 solution's projects from AutoMapper version 8.0.0 to version 9.0.0. There are a number of places in the code that are calling a ConfigureMap() method. Errors in the build output state:
IMappingOperationOptions<TSource, TDestination> does not contain a definition for ConfigureMap and no accessible extension method ConfigureMap...
Here are examples of what the current code looks like:
Mapper.Map(TSource, TDestination, opt => opt.ConfureMap());
Mapper.Map(TSource, TDestination, opt => opt.ConfigureMap().ForMember(dest => dest.someBool, m => m.MapFrom(src => src.someBoolVal));
I've looked at AutoMapper's documentation for upgrading from 8.0.0 to 9.0.0 and see no mention of the ConfigureMap() method being deprecated. However, it's not appearing when I search VS's Object Browser.
I would be most appreciative if anyone can share code for how to accomplish the same functionality in 9.0.0.