2008-09-24 Mike Kestner <mkestner@novell.com>

* glib/GType.cs: just fail on location null or empty instead of
	checking the assembly type.  Avoids failures on the ms runtime.

svn path=/trunk/gtk-sharp/; revision=113989
This commit is contained in:
Mike Kestner 2008-09-24 18:53:05 +00:00
parent 4c6832ec18
commit ead904c8a3
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-09-24 Mike Kestner <mkestner@novell.com>
* glib/GType.cs: just fail on location null or empty instead of
checking the assembly type. Avoids failures on the ms runtime.
2008-09-23 Mike Kestner <mkestner@novell.com> 2008-09-23 Mike Kestner <mkestner@novell.com>
* bootstrap-2.12: bump svn version after tag. * bootstrap-2.12: bump svn version after tag.

View file

@ -160,8 +160,7 @@ namespace GLib {
visited [asm] = asm; visited [asm] = asm;
Type result = asm.GetType (type_name); Type result = asm.GetType (type_name);
if (result == null) { if (result == null) {
if (asm is System.Reflection.Emit.AssemblyBuilder) if (asm.Location == null || asm.Location.Length == 0)
/* These don't support Location */
return null; return null;
string asm_dir = Path.GetDirectoryName (asm.Location); string asm_dir = Path.GetDirectoryName (asm.Location);
foreach (AssemblyName ref_name in asm.GetReferencedAssemblies ()) { foreach (AssemblyName ref_name in asm.GetReferencedAssemblies ()) {