简体   繁体   English

Automapper Nuget Package失败

[英]Automapper Nuget Package failed

I tried to install http://automapper.org/ but this resulted in an error. 我试图安装http://automapper.org/,但这导致了一个错误。

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? 有任何想法吗?

检查您的nuget包管理器版本是否是最新的,如果您正在尝试安装的nuget包支持您正在使用的.net框架的版本

I was facing the same issue in VS2010 with NuGet package manager 2.8.60318.667 version. 我在VS2010中遇到了与NuGet包管理器2.8.60318.667版本相同的问题。 so, I have installed the older version of the Automapper 4.0.4 and its work for me. 所以,我已经安装了旧版本的Automapper 4.0.4及其为我工作。

try to install Install-Package Automapper -Version 4.0.4 尝试安装Install-Package Automapper -Version 4.0.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 "Azure DevOps 管道中的问题在 .net 6 中恢复 AutoMapper NuGet 包" - Problem in Azure DevOps pipeline restoring AutoMapper NuGet package in .net 6 无法恢复 NuGet package 访问被拒绝 - Failed to restore NuGet package Access denied Nuget软件包未安装,添加参考失败 - Nuget package not installing, failed to add reference NuGet软件包管理器:&#39;AutoMapper&#39;已经具有为&#39;Microsoft.CSharp&#39;定义的依赖项 - NuGet Package Manager: 'AutoMapper' already has a dependency defined for 'Microsoft.CSharp' 使用.NET CORE安装NuGet软件包和Visual Studio代码失败 - Install NuGet package with .NET CORE and visual studio code failed Nuget 无法安装 package "RazorGenerator.Mvc" 与特定版本 2.3.12 - Nuget Failed to install package "RazorGenerator.Mvc" with specific version 2.3.12 无法构建NuGet包…包括源文​​件和符号文件 - Failed to build NuGet package…includes source and symbol file Nuget 包下载 Microsoft.Azure.ServiceBus 失败 - Nuget Package downloading Microsoft.Azure.ServiceBus failed 如何解决 Visual Studio 中的“NuGet package 还原失败”? - How to resolve "NuGet package restore failed" in Visual Studio? NuGet软件包安装失败“软件包还原失败。 回滚包更改 <xamarin.android> ” - NuGet package install fails “Package restore failed. Rolling back package changes for <xamarin.android>”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM