[Mono-bugs] [Bug 67149][Maj] Changed - Bad error message with DllImport when you don't use System.Runtime.InteropServices
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 29 Sep 2004 16:25:17 -0400 (EDT)
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 duncan@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=67149
--- shadow/67149 2004-09-29 16:07:08.000000000 -0400
+++ shadow/67149.tmp.18054 2004-09-29 16:25:17.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 67149
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Major
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: joeshaw@novell.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -30,6 +30,14 @@
external implementation
which is very confusing because I *do* have the DllImport statement there,
and I get no error saying that DllImportAttribute couldn't be found. I
spent maybe 20 minutes trying to figure out what was going on before it
dawned on me to add the using statement.
+
+------- Additional Comments From duncan@ximian.com 2004-09-29 16:25 -------
+With csc 8.00.40607.42 (came with C# Express, should be the same as
+beta-1), the error shown is:
+
+c:\src\test.cs(5,3): error CS0246: The type or namespace name
+'DllImport' could not be found (are you missing a using directive or
+an assembly reference?)