[Mono-bugs] [Bug 70043][Nor] Changed - monop should search the whole GAC

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 30 Nov 2004 18:55:56 -0500 (EST)

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.


--- shadow/70043	2004-11-30 18:37:22.000000000 -0500
+++ shadow/70043.tmp.23790	2004-11-30 18:55:56.000000000 -0500
@@ -18,6 +18,22 @@
 I hate having to pass -r:foo to monop. If it can't find the class
 in corlib, it should then try System, and then everything else in the
 GAC. If it finds it in some assembly that you didn't pass via -r on
 the command line, it could prepend a comment to the output letting
 you know where it found it.
+------- Additional Comments From duncan@ximian.com  2004-11-30 18:55 -------
+Here's a patch that mostly fixes this problem.
+However, we still have a list of common namespaces in the code. Even
+with this patch applied, "monop Graphics" will not find a correct
+result, because "System.Drawing" is not in the listing of known
+It is possible to collect a list of namespaces from the assemblies
+found in the GAC, but that will be an extremely expensive operation,
+as it requires iterating thru all the types in all assemblies.
+Ideally, monop will always probe the GAC in its entirety, in the case
+that two different namespace both define a type with the same type
+name, it will print out both possibilities.