Whats the difference between .Resx and .Resources

2019-03-25 07:52发布

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?

2条回答
太酷不给撩
2楼-- · 2019-03-25 08:22

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.

查看更多
▲ chillily
3楼-- · 2019-03-25 08:31

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.

查看更多
登录 后发表回答