I am getting this error:
The type or namespace name \'AutoMapper\' could not be found (are you missing a using directive or an assembly reference?)
In my case I got the error only in VS 2015. When opening the project in VS 2017 the error was gone.