C# 汇编中的 SQL 汇编错误
我有旧代码,源代码丢失了(但我们拥有它),所以我使用 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
这是什么意思?
I had old code that the source got lost (but we own it) so I decomplied it using reflector.net.
Now when I compile it, I get this:
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
What does this mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这意味着您需要将对
System.dll
的引用添加到您的项目中,然后再次尝试编译。It means that you need to add a reference to
System.dll
to your project and try compiling again.您间接引用了一个程序集(您添加了一个引用有问题的程序集的程序集)。添加参考,您就应该设置好了。
You are indirectly referencing an assembly (you have added an assembly that refers to the offending assembly). Add the reference and you should be set.