【问题标题】:SQL Assembly Errors in C# AssemblyC# 汇编中的 SQL 汇编错误
【发布时间】:2011-08-18 22:08:31
【问题描述】:

我的旧代码丢失了源代码(但我们拥有它),所以我使用 reflector.net 对其进行了反编译。

现在当我编译它时,我得到了这个:

 Error  1   The type 'System.ComponentModel.Component' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.  C:\NCESTableGenerator\NCESTableGenerator\db\OutputTableDAO.cs   27  20  NCESTableGenerator

这是什么意思?

【问题讨论】:

    标签: c# asp.net sql-server-2005 assemblies compilation


    【解决方案1】:

    这意味着你需要在你的项目中添加对System.dll的引用,然后再次尝试编译。

    【讨论】:

      【解决方案2】:

      间接引用了一个程序集(您添加了一个引用有问题程序集的程序集)。添加引用,您应该已经设置好了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-03-17
        • 1970-01-01
        • 1970-01-01
        • 2012-04-06
        相关资源
        最近更新 更多