[Mono-bugs] [Bug 650365] New: When creating a resx file with ResXResourceWriter, comments of ResXDataNode objects are not written.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 30 13:02:02 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=650365

https://bugzilla.novell.com/show_bug.cgi?id=650365#c0


           Summary: When creating a resx file with ResXResourceWriter,
                    comments of ResXDataNode objects are not written.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: 64bit
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: Nikolaos.Georgiou at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: No


Description of Problem:
When using the ResXResourceWriter in order to create a new resx file, the
comments of the ResXDataNode objects are not written to the output file.

Steps to reproduce the problem:
Use the following code:
using (ResXResourceWriter writer = new ResXResourceWriter(filename))
{
    ResXDataNode node = new ResXDataNode("key", "value");
    node.Comment = "comment gets lost";
    writer.AddResource(node);
    writer.Generate();
    writer.Close();
}

Actual Results:
In the resulting resx file, there is only a value XML element but not a comment
element.

Expected Results:
Both a value and comment element should exist in the output file.

How often does this happen? 
Always.

Additional Information:
The cause can be found in the source code of ResXResourceWriter. The comment
argument is ignored.

-- 
Configure bugmail: https://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