Whats the difference between .Resx and .Resources file types?

天涯浪子 提交于 2020-02-26 11:59:04

问题


I've got a lot of .resources files, that I need to open up and view. I downloaded Zeta Resource Editor but it only works with .Resx files. Is there a difference? Can I open .Resources files and extract its contents?


回答1:


I think resx file contains the non-compiled resources in XML based format. These resx files are compiled into .resource file. So .resource file contains resx data in binary format.

According to MSDN

The .resx (XML-based resource format) files are converted in to common language runtime binary .resources files that can be embedded in a runtime binary executable or compiled into satellite assemblies.




回答2:


You could always use the resgen.exe utility from visual studio to convert them into .resx files (the opposite of what happens during compilation):

resgen.exe /compile input.resources,output.resx

Resgen is often found at C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\ResGen.exe, or directly accessible from the VS command prompt.



来源:https://stackoverflow.com/questions/8953067/whats-the-difference-between-resx-and-resources-file-types

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!