[Mono-docs-list] monodoc ecma-provider reflection and the gac
John Luke
jluke@users.sourceforge.net
Sat, 08 May 2004 16:55:19 -0400
--=-xULqoQebyOC+noPeudhW
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
A simple patch attached to use .LoadWithPartialName instead of .Load
for the ecma-provider so it finds assemblies in the GAC. A more proper
fix might be to load with the full assembly name.
--=-xULqoQebyOC+noPeudhW
Content-Disposition: attachment; filename=loadpartial.diff
Content-Type: text/x-patch; name=loadpartial.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit
? loadpartial.diff
? monodoc.config
Index: ChangeLog
===================================================================
RCS file: /cvs/public/monodoc/browser/ChangeLog,v
retrieving revision 1.114
diff -u -p -r1.114 ChangeLog
--- ChangeLog 3 May 2004 22:36:32 -0000 1.114
+++ ChangeLog 8 May 2004 20:10:37 -0000
@@ -1,3 +1,8 @@
+2004-05-07 John Luke <jluke@cfl.rr.com>
+
+ * ecma-provider.cs: use Assembly.LoadWithPartialName instead of
+ Assembly.Load
+
2004-05-03 Todd Berman <tberman@sevenl.net>
* Makefile.am: modifying gacutil to add gtk-sharp package.
Index: ecma-provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/ecma-provider.cs,v
retrieving revision 1.78
diff -u -p -r1.78 ecma-provider.cs
--- ecma-provider.cs 25 Apr 2004 15:41:14 -0000 1.78
+++ ecma-provider.cs 8 May 2004 20:10:37 -0000
@@ -1005,7 +1005,7 @@ public class EcmaHelpSource : HelpSource
Assembly assembly = null;
try {
- assembly = Assembly.Load(assemblyname);
+ assembly = Assembly.LoadWithPartialName (assemblyname);
} catch (Exception e) { }
if (assembly == null) {
/*if (strlong) return "The assembly " + assemblyname + " is not available to MonoDoc.";
@@ -1082,7 +1082,7 @@ public class EcmaHelpSource : HelpSource
if (assemblyname == "")
return "";
- Assembly assembly = Assembly.Load(assemblyname);
+ Assembly assembly = Assembly.LoadWithPartialName (assemblyname);
if (assembly == null) {
if (strlong)
return "The assembly " + assemblyname + " is not available to MonoDoc.";
@@ -1126,7 +1126,7 @@ public class EcmaHelpSource : HelpSource
try {
if (assemblyname == "")
return "";
- Assembly assembly = Assembly.Load(assemblyname);
+ Assembly assembly = Assembly.LoadWithPartialName (assemblyname);
if (assembly == null)
return "";
Type t = assembly.GetType(typename, false);
--=-xULqoQebyOC+noPeudhW--