开发者

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.

How to see resource file content in Visual Studio when created pro programmatically

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜