When vs2012 installs automapper under. Net 4.0, the following error will be reported:
‘automapper’ already has a dependency defined for ‘standard. Library’.
‘AutoMapper’ already has a dependency defined for ‘Standard.Library’.
It is found that the nuget Version (version 2.83 of vs2012) is lower, and the standard. Library framework is not supported.
There are two solutions
Method 1
nuget 2.12 supports the. Net standard framework used by automapper 5.0.1 nuget package, so nuget needs to be upgraded to nuget 2.12 or above
PM & gt; Install-Package AutoMapper -Version 4.1.1
Installing ‘AutoMapper 4.1.1’.
Successfully installed ‘AutoMapper 4.1.1’.
reference resources:
http://majing.io/questions/557
Reproduced in: https://www.cnblogs.com/yanglang/p/7065049.html