[Mono-bugs] [Bug 546690] New: Reading a .resx file containg windows backslash directory separator does not work.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 18:06:22 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=546690


           Summary: Reading a .resx file containg windows backslash
                    directory separator does not work.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: halfdan at halfdans.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=322371)
 --> (http://bugzilla.novell.com/attachment.cgi?id=322371)
Fix windows paths

Description of Problem:
Trying to compile a .resx file referencing filenames with \ (backslash) in them
can not be resolved.

Steps to reproduce the problem:
1. Try compiling something like My Nes (http://mynes.sf.net) using xbuild.
2. The resource file can not be found.


Actual Results:
ResXResourceReader looks for <basepath>..\Resources\Icon.ico.

Expected Results:
ResXResourceReader looks for <basepath>..<system dir separator>Resources<system
dir separator>Icon.ico

How often does this happen? 
Every time on unix (and probably also MacOSX).

Additional Information:
This is really a show stopper when trying to compile visual studio generated
projects, i have been bitten by it more times than i can count - and now i
finally mustered up the courage to try to tame the mono beast :)

There might be a more elegant way to fix this, i just String.Replace the
backslash with Path.DirectorySeparatorChar

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list