This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20224|Reply: 1

[Source] VS2012 Solution to the error when installing AutoMapper in Nuget

[Copy link]
Posted on 7/24/2017 2:07:24 PM | | |
When VS2012 installs AutoMapper under .net 4.0, the following error is reported:

AutoMapper already has the dependencies defined for Standard.Library.

'AutoMapper' already has a dependency defined for 'Standard.Library'.

It seems to be caused by the low Nuget version (VS2012 version 2.83), which does not support the Standard.Library framework.


There are two workarounds:

Method 1
NuGet 2.12 supports the . NETStandard framework, so you need to upgrade NuGet to NuGet 2.12 or above.
However, NuGet 2.12 does not support Visual Studio 2012, so you also need to upgrade Visual Studio to 2013.

Method 2 (Adoption)
Downgrading the version of AutoMapper to a compatible version of NuGet is tested to install 4.1.1 perfectly, and by the way, Microsoft.Bcl is installed, and you can use .Net4.5's await and async
PM> Install-Package AutoMapper -Version 4.1.1
Installing 'AutoMapper 4.1.1'.
Successfully installed 'AutoMapper 4.1.1'.




Previous:The difference between server and client of Java's virtual machine JVM
Next:dz attachment file cannot save workaround
Posted on 7/26/2017 10:13:12 AM |
What are await and async for?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com