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?
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:
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.
Most helpful comment
https://dist.nuget.org/index.html
dowload the suitable verson.