3

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

类型“XXX”是在未引用的程序集中定义的。您必须添加对程序集 'XXX,Version=[正确版本],Culture=[正确文化],PublicKeyToken=null [不正确的公钥令牌]'的引用

当恢复到未签名的程序集时(唯一的代码差异是引用程序集中的签名信息及其存储共享密钥的解决方案),一切都会重新构建。

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

谢谢,罗伯

4

1 回答 1

4

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.

于 2012-05-04T07:56:55.630 回答