I have just upgraded to v8 of AutoMapper and the expression below fails but I really cannot see why.
cfg.CreateMap<string, Nmtoken>()
.ConstructUsing(i => new Nmtoken(i))
.ForMember(m => m.Token, o => o.MapFrom(s => s));
I believe that the passed expressions are valid. I get no build errors and intellisense is happy. But I get runtime error:
System.MissingMethodException: 'Method not found:
'AutoMapper.IMappingExpression`2<!0,!1>
AutoMapper.IMappingExpression`2.ConstructUsing(System.Func`2<!0,!1>)'.'
I'm happy to admit that I don't understand the error message.