[Mono-bugs] [Bug 40853][Nor] New - Bug in mcs '/r:' handling

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 7 Apr 2003 05:45:23 -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 piersh@friskit.com.

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

--- shadow/40853	Mon Apr  7 05:45:23 2003
+++ shadow/40853.tmp.2301	Mon Apr  7 05:45:23 2003
@@ -0,0 +1,39 @@
+Bug#: 40853
+Product: Mono/MCS
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: piersh@friskit.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bug in mcs '/r:' handling
+
+I think there's a bug in the way that mcs handles assembly references. It 
+looks like its ability to resolve assembly references depends on the order 
+that the references appear on the command line. By way of explanation, 
+please see the attached files.
+
+There are 3 assemblies created:
+        a/a.dll - references no other assemblies
+        b/b.dll - references a.dll
+        c.exe - references b.dll
+
+In the makefile there are two attempts to build c.exe:
+        mcs /r:a/a.dll /r:b/b.dll c.cs
+        mcs /r:b/b.dll /r:a/a.dll c.cs
+
+The first one succeeds. The second one fails - it shouldn't.
+
+** (/home/server/mono/install/bin/mcs.exe:6307): WARNING **: Could not 
+find assembly a error CS0006: Cannot find assembly `b/b.dll'
+
+I believe that mcs should include the assemblies referenced on the command 
+line in its list of places to look when resolving those assemblies.