VS2012 Nuget installation AutoMapper times the wrong solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.