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>
* bootstrap-2.12: bump svn version after tag.

View File

@ -160,8 +160,7 @@ 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 */
if (asm.Location == null || asm.Location.Length == 0)
return null;
string asm_dir = Path.GetDirectoryName (asm.Location);
foreach (AssemblyName ref_name in asm.GetReferencedAssemblies ()) {