2008-09-09 Zoltan Varga <vargaz@gmail.com>
* glib/GType.cs (FindTypeInReferences): Skip dynamic assemblies. svn path=/trunk/gtk-sharp/; revision=112605
This commit is contained in:
parent
fdfff5bb60
commit
b1a12cf3ec
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-09-09 Zoltan Varga <vargaz@gmail.com>
|
||||
|
||||
* glib/GType.cs (FindTypeInReferences): Skip dynamic assemblies.
|
||||
|
||||
2008-09-08 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/GType.cs: beef up the referenced assembly loading code to
|
||||
|
|
|
@ -160,6 +160,9 @@ namespace GLib {
|
|||
visited [asm] = asm;
|
||||
Type result = asm.GetType (type_name);
|
||||
if (result == null) {
|
||||
if (asm is System.Reflection.Emit.AssemblyBuilder)
|
||||
/* These don't support Location */
|
||||
return null;
|
||||
string asm_dir = Path.GetDirectoryName (asm.Location);
|
||||
foreach (AssemblyName ref_name in asm.GetReferencedAssemblies ()) {
|
||||
Assembly ref_asm;
|
||||
|
|
Loading…
Reference in a new issue