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?)
This happened to me in Visual Studio 2019. For me, I was trying to reference another project in my solution. Here are the steps I took in case it helps anyone else:
I was confused because I was still getting the error after steps 1 and 2, but building the project seemed to resolve it.