We ran into this problem, and here's how:
The problem started when we added part of the nuget configuration to the build process, since we have our own nuget server, as well as for internal packages.
After trying to use ExpressMapper and working with it for some components, we found that AutoMapper is a dependent package for some of the packages we use, so we needed to find a way to use automapper.
automapper, , nuget, . , -.