引用的程序集Dapper没有强名 [英] Referenced assembly Dapper does not have a strong name

查看:108
本文介绍了引用的程序集Dapper没有强名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从NuGet安装了dapper。当我尝试编译代码时,出现错误

I installed dapper from NuGet. When I try to compile the code I'm getting the error


引用的程序集Dapper的名字不强

Referenced assembly Dapper does not have a strong name

这是什么原因?

推荐答案

您看到错误因为您使用的程序包没有一个好名,也就是说,它不使用签名。

You see the error because the package you use doesn't have a strong name, that is it doesn't use signing.

签名可以确保程序集的真实性。请参阅未对.NET程序集签名是否有误?,以获取有关应该(或不应)对程序集进行签名的原因的更多信息

Signing ensures the authenticity of an assembly. See Anything wrong with NOT signing a .NET assembly? for more information about the reasons assemblies should (or should not) be signed.

如果未对程序集进行签名,则不能在已签名的程序集中使用。

If an assembly is not signed, it cannot be used in an assembly which is.

您可以要么停用使用Dapper的程序集中的签名,但我不建议这样做。相反,您可以使用 Dapper.StrongName 包。

You may either deactivate signing in the assembly which uses Dapper, but I wouldn't recommend that. Instead, you may use the Dapper.StrongName package instead.

这篇关于引用的程序集Dapper没有强名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆