Author: mhabersack
Date: 2006-11-18 11:02:17 -0500 (Sat, 18 Nov 2006)
New Revision: 68122

Modified:
   trunk/mcs/class/System.Web/System.Web.Compilation/AppResourceFilesCompiler.cs
   trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
Log:
Fix for File.extension cases in the resource directories

Modified: 
trunk/mcs/class/System.Web/System.Web.Compilation/AppResourceFilesCompiler.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.Compilation/AppResourceFilesCompiler.cs   
    2006-11-18 12:59:40 UTC (rev 68121)
+++ 
trunk/mcs/class/System.Web/System.Web.Compilation/AppResourceFilesCompiler.cs   
    2006-11-18 16:02:17 UTC (rev 68122)
@@ -249,7 +249,7 @@
                        fname = Path.GetFileNameWithoutExtension (resfile);
                        nsname = Path.GetFileNameWithoutExtension (fname);
                        classname = Path.GetExtension (fname);
-                       if (classname == null) {
+                       if (classname == null || classname.Length == 0) {
                                classname = nsname;
                                nsname = "Resources";
                        } else {
@@ -501,7 +501,7 @@
                                
                                tmp = Path.GetFileNameWithoutExtension (s);
                                tmp = Path.GetExtension (tmp);
-                               if (tmp == null)
+                               if (tmp == null || tmp.Length == 0)
                                        continue;
                                tmp = tmp.Substring (1);
                                try {

Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-11-18 
12:59:40 UTC (rev 68121)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2006-11-18 
16:02:17 UTC (rev 68122)
@@ -1,3 +1,9 @@
+2006-11-18  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * AppResourceFilesCompiler.cs: Fixed an exception thrown when
+       files with names like File.resources or File.resx are found in the
+       resource directories.
+
 2006-11-16  Marek Habersack  <[EMAIL PROTECTED]>
 
        * ForceCopyBuildProvider.cs: Added the build provider for

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

Reply via email to