I've created an issue over at AutoMapper.
[https://github.com/AutoMapper/AutoMapper/issues/1683])
Okay my initial console code was incorrect, it should be :
class Program
{
static void Main(string[] args)
{
Mapper.Initialize(cfg => cfg.CreateMap<OutgoingTransaction, OutgoingTransactionDto>());
var transaction = new OutgoingTransaction();
var dto = Mapper.Map<OutgoingTransactionDto>(transaction);
}
}
Using automapper 5.1.1 it gives me the error but if I use version 5.0.2 or less then it works...
So the issue is automapper