I just installed AutoMapper, via nuGet, on a new project, but when I run the code, I get the following error:
Could not load file or assembly 'AutoMapper, Version=2.2.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Why is it looking for Version=2.2.1.0, and what can I do about it? Revert to that version?
You probably just want to add a binding redirect for AutoMapper as one of your references is looking for version 2.2 specifically
This should do it: