views:

26

answers:

1

I created a resource file programmatically. File got created successfully. But when I tries to open it in Visual Studio or notepad it shows me some encoded characters. I was expecting to get an XML.

Here is what I was expecting and getting. alt text

What I did in coding is

    ResourceWriter rw = new ResourceWriter("Resource.en.resx");
    rw.AddResource(value, "name setter");
  //  rw.AddResource(value, "myname");
    rw.Generate();
    rw.Close();
+2  A: 

You need to be using ResXResourceWriter to write resx files. The ResourceWriter is for writing system-default binary resource files.

womp
@womp: I didn't see that, i was reading many articles that were saying the same but I didn't see at my code about what I am using.
Shantanu Gupta