Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

.net

resources

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?

like image 361
Robin Rodricks Avatar asked Jan 21 '12 12:01

Robin Rodricks


People also ask

What does .resx file do?

A . resx file contains a standard set of header information that describes the format of the resource entries, and specifies the versioning information for the XML code that parses the data. These files contain all the strings, labels, captions, and titles for all text in the three IBM Cognos Office components.

How do I open a .resx file?

Open a . resx file in the XML (Text) editor. Press Ctrl+Alt+F or choose ReSharper | Windows | File Structure from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there.

What type of file is Resx?

resx) files are a monolingual file format used in Microsoft . Net Applications. The . resx resource file format consists of XML entries, which specify objects and strings inside XML tags.


2 Answers

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.

like image 200
staafl Avatar answered Oct 13 '22 16:10

staafl


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.

like image 43
Haris Hasan Avatar answered Oct 13 '22 16:10

Haris Hasan