c# - Automapper Nuget 包失败

标签 c# automapper

我尝试安装 http://automapper.org/但这导致了错误。

安装包:“AutoMapper”已经为“Microsoft.CSharp”定义了依赖项。 在行:1 字符:1 + 安装包 AutoMapper + ~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [安装包], InvalidOperationException + FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

有什么想法吗?

最佳答案

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

关于c# - Automapper Nuget 包失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38186799/

相关文章:

C# 使用通过反射找到的类型作为泛型

c# - Automapper,我们可以看看它是如何映射对象的吗?

c# - 如何使用 linq 向关系表中的实体添加数据?

c# - 加载常量的 MSIL 指令

c# - LINQ To XML 错误 : type of the expression in the select clause is incorrect. 调用 'Select' 时类型推断失败

c# - 在 C# 中运行 python 模块?

c# - 如何为 AutoMapper 实现自定义命名解析器

c# - 使用 AutoMapper 6.1.1 创建 map

linq - Automapper 无法将一种枚举类型投影到另一种枚举类型

c# - AutoMapper:字符串到可为空的 int