Author: zoltan
Date: 2007-12-26 16:16:51 -0500 (Wed, 26 Dec 2007)
New Revision: 91907

Modified:
   trunk/mcs/class/corlib/System.Reflection/Assembly.cs
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2007-12-26  Zoltan Varga  <[EMAIL PROTECTED]>

        * Assembly.cs (GetSatelliteAssembly): Search in the assembly directory 
as well.
        Fixes ##345627.


Modified: trunk/mcs/class/corlib/System.Reflection/Assembly.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Assembly.cs        2007-12-26 
20:59:34 UTC (rev 91906)
+++ trunk/mcs/class/corlib/System.Reflection/Assembly.cs        2007-12-26 
21:16:51 UTC (rev 91907)
@@ -436,7 +436,13 @@
 
                        aname.CultureInfo = culture;
                        aname.Name = aname.Name + ".resources";
-                       return Load (aname);
+                       try {
+                               return Load (aname);
+                       } catch (Exception) {
+                               // Try the assembly directory
+                               string fullName = Path.Combine 
(Path.GetDirectoryName (Location), Path.Combine (culture.Name, aname.Name + 
".dll"));
+                               return LoadFrom (fullName);
+                       }
                }
                
                [MethodImplAttribute (MethodImplOptions.InternalCall)]

Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-12-26 20:59:34 UTC 
(rev 91906)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-12-26 21:16:51 UTC 
(rev 91907)
@@ -1,3 +1,8 @@
+2007-12-26  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * Assembly.cs (GetSatelliteAssembly): Search in the assembly directory 
as well.
+       Fixes ##345627.
+
 2007-12-03  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * MonoField.cs: Implement GetRawConstantValue ().

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to