5

I tried to install http://automapper.org/ but this resulted in an error.

Install-Package : 'AutoMapper' already has a dependency defined for 'Microsoft.CSharp'. At line:1 char:1 + Install-Package AutoMapper + ~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Any ideas?

Jean-Paul
  • 380
  • 2
  • 9
  • 26
  • Here's http://stackoverflow.com/questions/23286522/can-not-install-nuget-package Hope it helps. – tlp Jul 04 '16 at 14:55
  • I have asked my system administrator to update nuget, we will know tomorrow! – Jean-Paul Jul 04 '16 at 20:59
  • 2 days later, still no solution, but IT Server management is looking into it, will get a fix, but it might take some days. Thanks for the help! – Jean-Paul Jul 07 '16 at 14:48

2 Answers2

3

Check your version of nuget package manager is current and if the version of the .net framework you are using is supported by the nuget package you are trying to install

Turkster
  • 46
  • 4
1

I was facing the same issue in VS2010 with NuGet package manager 2.8.60318.667 version. so, I have installed the older version of the Automapper 4.0.4 and its work for me.

try to install Install-Package Automapper -Version 4.0.4

Niraj Trivedi
  • 2,370
  • 22
  • 24