How to see resource file content in Visual Studio when created pro programmatically
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 char开发者_如何转开发acters. I was expecting to get an XML.
Here is what I was expecting and getting.
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();
You need to be using ResXResourceWriter to write resx files. The ResourceWriter is for writing system-default binary resource files.
精彩评论