[Mono-bugs] [Bug 23870] New - Can't Descend from Component (MCS 0.11)

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
25 Apr 2002 15:47:09 -0000

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bryan@alphora.com.


--- shadow/23870	Thu Apr 25 11:47:09 2002
+++ shadow/23870.tmp.8534	Thu Apr 25 11:47:09 2002
@@ -0,0 +1,63 @@
+Bug#: 23870
+Product: Mono/MCS
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bryan@alphora.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Can't Descend from Component (MCS 0.11)
+Description of Problem:
+Can't Descend from Component (MCS 0.11)
+Steps to reproduce the problem:
+  using System.ComponentModel;
+  public class NewComponent: Component
+  {
+  }
+Actual Results:
+C:\src\Dataphor\Base>mcs --target library testcomponent.cs
+.\testcomponent.cs(3) error CS0246: Can not find type `Component'
+Error: Compilation failed
+Expected Results:
+C:\src\Dataphor\Base>csc /target:library testcomponent.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+How often does this happen? 
+Additional Information:
+Is mcs linking with the mono system.dll or something?
+I would think they would use the .Net ones installed in the GAC.
+If that isn't the problem then mcs isn't finding the Component class in 
+the system.dll.
+I tried fooling around with the reference command line options but it 
+didn't help.
+Running under XP with .net framework SP1 installed.
+This is the last error I'm having with the getting the first DLL of my 
+project to compile with mcs.
+Keep the builds coming!