c# - 登录 Visual Studio 2010 后无法运行代码的原因是什么?

标签 c# c#-4.0 dll reference code-signing

我收到“引用的程序集‘xxxxxxxxxx.GPUImage’没有强名称错误”并且根据 How to fix "Referenced assembly does not have a strong name" error ,我已经纠正了这个问题。我也添加了正确的引用。 (我在其他两个第三方程序集上遇到了这个问题,在签名后它们可以正常工作。)

但是在我签名之后,它给出了一个之前没有给出的新错误。具体如下。

Error    2    The type 'xxxxxxxxxx.GPUImage.ImageFilter' is defined in an assembly
that is not referenced. You must add a reference to assembly 'xxxxxxxxxx.GPUImage',
Version=2.0.0.0, Culture=neutral, 'PublicKeyToken=null'.

这是什么原因? .dll 是否可以包含已签名的 .dll 中未分配的 .dll?

如@eric 所述,我运行了 fusion log,以下是日志文件。

Enter image description here

最佳答案

在您的硬盘上搜索所有未签名的程序集,并删除它们 - 只保留已签名的版本。然后做一个完整的重建。它要么有效,要么您会发现谁在引用旧程序集。

关于c# - 登录 Visual Studio 2010 后无法运行代码的原因是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10925969/

相关文章:

c# - SQL Server 比较具有相同列的两个表行并返回更改的列

c++ - 多个 CRT 出现段错误

dll - 如何找出可执行文件将加载哪些 dll?

c# - 有什么方法可以在生成的迭代器 block 中获取对 "this"的引用?

c# - Identity Server 4 for Nativescript 应用程序应使用哪种流程以及它的安全性如何?

c# - Google Maps.TimeZone.Query LatLng 返回不正确的时间偏移

c# - 为什么从我的代码中删除 TextBox.AppendText() 会更改此处的套接字通信?

c# - "Execution of the ' document() ' function was prohibited."其中 EnableDocumentFunction 设置为 true?

c# - c# 中的 Environment.SpecialFolder.CommonStartMenu 和 Environment.SpecialFolder.StartMenu 有什么区别?

asp.net - 通过不同的 Web 应用程序共享相同的 dll 而无需复制