SQL Assembly Errors in C# Assembly
I had old code that the source got lost (开发者_C百科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?
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.
精彩评论