Jean-Paul
Jean-Paul

Reputation: 379

Automapper Nuget Package failed

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?

Upvotes: 5

Views: 3751

Answers (2)

Niraj Trivedi
Niraj Trivedi

Reputation: 2880

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

Upvotes: 1

Turkster
Turkster

Reputation: 46

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

Upvotes: 3

Related Questions