签署引用的程序集后构建错误(Build error after signing referenced assemblies)

编程入门 行业动态 更新时间:2024-10-19 14:40:34
签署引用的程序集后构建错误(Build error after signing referenced assemblies)

我签署了一些很乐意用预签名构建的程序集后,我在项目中遇到了构建错误。 在错误列表中,我看到的错误如下:

类型“XXX”在未引用的程序集中定义。 您必须添加对程序集“XXX,Version = [ correct version ],Culture = [ correct culture ],PublicKeyToken = null [ 不正确的公钥标记 ]'的引用

当还原为非签名程序集时(只有代码差异是引用程序集中的签名信息及其存储共享密钥的解决方案),所有内容都会再次构建。

不幸的是,这些文件需要签名,所以我想知道是否有人之前遇到过这个问题?

谢谢,罗布

I'm encountering build errors in my project after signing some of the assemblies it has been happy to build with pre-signing. In the error list I'm seeing the errors like:

The type 'XXX' is defined in an assembly that is not referenced. You must add a reference to assembly 'XXX, Version=[correct version], Culture=[correct culture], PublicKeyToken=null [incorrect public key token]'

When reverting back to the non-signed assemblies (only code difference is the signing information in the referenced assemblies and their solution which stores the shared key), everything builds again.

Unfortunately, these files need to be signed, so I'm wondering if anyone has encountered this issue before?

Thanks, Rob

最满意答案

感谢大家的回答。

事实证明,这与集会签署的事实毫无关系。 还有其他程序集仍然引用了我没有发现的旧签名版本。

......通常情况下,错误发生在椅子和键盘之间。

Thanks to everyone for their answers.

As it turns out, it was nothing to do with the fact that the assemblies had become signed. There were simply other assemblies that were still referencing the old signed versions that I hadn't spotted.

...as is usually the case, the error was between the chair and the keyboard.

更多推荐

本文发布于:2023-04-29 12:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336349.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   程序   Build   error   referenced

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!