Referenced assembly Dapper does not have a strong name

江枫思渺然 提交于 2019-12-08 16:37:22

问题


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

Referenced assembly Dapper does not have a strong name

What causes this?


回答1:


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

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.

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.



来源:https://stackoverflow.com/questions/36396667/referenced-assembly-dapper-does-not-have-a-strong-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!