Using the fully qualified assembly name in dependencies
authorMario Kosmiskas <mariokmk@local.com>
Wed, 8 Jan 2014 19:32:28 +0000 (11:32 -0800)
committerMario Kosmiskas <mariokmk@local.com>
Wed, 8 Jan 2014 19:32:28 +0000 (11:32 -0800)
Some assemblies fail to load without specifying the full name,
namely bundling an app that uses GTK

mcs/tools/mkbundle/mkbundle.cs

index 8f7e736ff6331b4c133145b5ff49e894967b4ad6..2d1fc726fb2450af93d7f994680a9215ccd622a6 100755 (executable)
@@ -582,7 +582,7 @@ void          mono_register_config_for_assembly (const char* assembly_name, cons
                        Assembly a = universe.LoadFile (new Uri(codebase).LocalPath);
 
                        foreach (AssemblyName an in a.GetReferencedAssemblies ()) {
-                               a = universe.Load (an.Name);
+                               a = universe.Load (an.FullName);
                                QueueAssembly (files, a.CodeBase);
                        }
                } catch (Exception e) {