VS2012 when installing AutoMapper under. NET 4.0, the following error is reported:
"AutoMapper" already has a dependency defined for "Standard.library".
' AutoMapper ' already have a dependency defined for ' standard.library '.
This should be the result of a lower version of NuGet (version 2.83 of VS2012) and does not support the Standard.library framework.
There are two solutions:
Way One
NuGet 2.12 supports the AutoMapper 5.0.1 NuGet package used. Netstandard framework, so you need to upgrade NuGet to NuGet 2.12 or higher.
However, NuGet2.12 does not support Visual Studio 2012, so you also need to upgrade Visual Studio to 2013.
Mode II (ADOPTED)
Downgrade the version of AutoMapper to the current version of NuGet, tested 4.1.1 Perfect installation, and incidentally installed MICROSOFT.BCL, you can use. Net4.5 await and Async.
pm> install-package automapper-version 4.1.1
Installing ' AutoMapper 4.1.1 '.
Successfully installed ' AutoMapper 4.1.1 '.
Reference:
http://majing.io/questions/557
VS2012 Nuget installation AutoMapper times the wrong solution