Automapper: 'AutoMapper' already has a dependency defined for 'NETStandard.Library'.

Created on 8 Jul 2016  路  10Comments  路  Source: AutoMapper/AutoMapper

I tried to install Automapper just now (07/09/16) and got this error ('AutoMapper' already has a dependency defined for 'NETStandard.Library'.) in the Manage Nuget Packages for Solution screen in VS2013.

The package details state the version as 5.0.2, last published 7/7/2016

Any idea on how to get around this error?

Most helpful comment

https://dist.nuget.org/index.html
dowload the suitable verson.

All 10 comments

What version of NuGet are you using? What target framework are you installing into?

Oops sorry I jumped the gun! I googled the error and saw that it's been resolved by installing the latest version of Nuget Package Manager. AutoMapper installed after I installed Nuget and restarted VS.

Thanks for the prompt response!

Sure, just for others if they see this, what version of NuGet did you have before?

I'm sorry for the delay, I was dealing with Ramsonware (Zepto) on a friend's computer -- this is a nasty one!

I cannot get the exact version as I updated it before you asked me and didn't look at the current version beforehand. However I recently installed Windows 7 and VS13 on this PC and had not updated anything on VS so it should be the version it comes with out of the box.

No worries, thanks!

https://dist.nuget.org/index.html
dowload the suitable verson.

I guess VS2012 is not supported anymore considering the link provided by @codepandy , but you get this error when trying to install latest version of automapper in a clean VS2012 project, with up to date nuget extension (2.8.60318.667).

Automapper 4.2.1 works fine on VS2012.

For posterity...

Initially tried to follow the advice in this thread by typing Nuget Update -Self in the Package Mgr Console .

This did not solve the problem. The problem was only solved by going into the VS2015 GUI and doing the uninstall and reinstall there:

Tools > Extensions and Updates

I had the same issue and had it resolved by following these procedures:

  1. Right-click the project in the Solution Explorer and select the option 'Manage NuGet Packages'.
  2. At the LHS pane, click 'Online' from the list, then type any package name you want on the upper
    right search field.
  3. Select and Install. If there are dependencies, the system will add them automaically (the right versions of course).
  4. Restart VS if necessary.
    Note: the listed procedures require an internet connection.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jepl4052 picture jepl4052  路  6Comments

zolakt picture zolakt  路  4Comments

colin-young picture colin-young  路  6Comments

Mds92 picture Mds92  路  5Comments

vivainio picture vivainio  路  6Comments