开发者

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

开发者 https://www.devze.com 2023-01-06 11:40 出处:网络
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

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

精彩评论

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