Automapper Nuget Package failed

2019-06-20 14:59发布

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?

标签: c# AutoMapper
2条回答
再贱就再见
2楼-- · 2019-06-20 15:50

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

查看更多
太酷不给撩
3楼-- · 2019-06-20 16:01

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

查看更多
登录 后发表回答