On Wed, 2009-04-08 at 13:37 -0700, Casey Marshall wrote: > I don't think that will fix it — I dug around with mdb and it looks > like the assembly resolver being used (a DefaultAssemblyResolver) only > has the default directories in the search path, "." and "bin".
This is exactly what I needed to know. I didn't realize that each assembly would have a different Resolver... :-( In any event, I was (eventually) able to reproduce the problem, and have cooked up the attached patch which appears to fix it for me. Hopefully this will fix things for you. - Jon
Index: tools/mdoc/Mono.Documentation/monodocer.cs =================================================================== --- tools/mdoc/Mono.Documentation/monodocer.cs (revision 128117) +++ tools/mdoc/Mono.Documentation/monodocer.cs (working copy) @@ -47,6 +47,7 @@ static string srcPath; static List<AssemblyDefinition> assemblies; + static DefaultAssemblyResolver assemblyResolver = new DefaultAssemblyResolver(); static bool nooverrides = true, delete = false, ignoremembers = false; static bool pretty = false; @@ -231,9 +232,9 @@ if (assembly == null) throw new InvalidOperationException("Assembly " + name + " not found."); - var r = assembly.Resolver as BaseAssemblyResolver; - if (r != null && name.Contains (Path.DirectorySeparatorChar)) { - r.AddSearchDirectory (Path.GetDirectoryName (name)); + assembly.Resolver = assemblyResolver; + if (name.Contains (Path.DirectorySeparatorChar)) { + assemblyResolver.AddSearchDirectory (Path.GetDirectoryName (name)); } return assembly; }
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list