[Mono-bugs] [Bug 58244][Wis] Changed - error CS1509: Referenced file '...' is not an assembly; use '/addmodule' option instead

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 6 Jun 2004 16:31:06 -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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=58244

--- shadow/58244	2004-06-06 16:23:39.000000000 -0400
+++ shadow/58244.tmp.31463	2004-06-06 16:31:06.000000000 -0400
@@ -136,6 +136,25 @@
 '/addmodule' option instead
 
 is what I get, when i make this sorta mistake. If possible, we should
 give the same error.
 
 this is a wishlist (non-graceful failure).
+
+------- Additional Comments From bmaurer@users.sf.net  2004-06-06 16:31 -------
+btw, when i run mcs on the MS.net runtime, i get a *much* cleaner error:
+
+error CS0006: Cannot load assembly === Pre-bind state information ===
+LOG: Where-ref bind. Location = C:\Inetpub\ftproot\t.dll
+LOG: Appbase = C:\Inetpub\ftproot\
+LOG: Initial PrivatePath = NULL
+Calling assembly : (Unknown).
+===
+ 
+LOG: Policy not being applied to reference at this time (private,
+custom, partial, or location-based assembly bind).
+LOG: Attempting download of new URL file:///C:/Inetpub/ftproot/t.dll.
+ 
+Compilation failed: 1 error(s), 0 warnings
+
+It does not tell me anything about module/assembly, but at least it is
+not an assertion, and the compiler is able to exit semi-gracefully.