dban10
dban10

Reputation:

Visual Studio resource editor

I am trying to view a .resx file in the resource editor in Visual Studio, but Visual Studio is unable to open it with this program. I right clicked on the .resx file and then chose Open With. It gave me a list of different programs I could choose to open my .resx file with, including XML Editor, HTML Editor, Binary Editor and Resource Editor. I chose the Resource Editor and clicked OK. After Visual studio gave me an error message stating: "The file cannot be opened with the selected editor. Please chose another editor.". How can I make it work?

Upvotes: 0

Views: 6052

Answers (4)

maxwellb
maxwellb

Reputation: 13944

The .resx file is an XML format file. The .resources file format is a binary format.

Since projects in .NET programming languages do not use resource script files, you must open your resources from Solution Explorer.

The following article describes opening resource files in Visual Studio and specifies a .rc file format.

Mads Kristensen wrote a .NET Resource Editor for .resx files.


(source: madskristensen.net)

Another alternative (especially if you are using Express and cannot edit for that reason) is the Canaware DevAssistant program. It provides a .NET resource editor.

http://www.canaware.com/Images/en-CA/ResourceEditor_AddImage_289x204.bmp

Upvotes: 3

ChrisW
ChrisW

Reputation: 56113

If you're using an Express edition, may that (the ability to edit a compiled resource) is one of the features that's disabled in Express editions.

Upvotes: 1

Joakim Elofsson
Joakim Elofsson

Reputation: 38226

As I understand it .resx is just a textfile, so should be able to open it in notepad to check if it is ok (not corrupt).

Upvotes: 0

ChrisLively
ChrisLively

Reputation: 88064

Try creating a new one from the IDE and opening that to see if it's an actual VS problem or if your resource file is corrupted somehow. I'm going to guess it's the latter.

Upvotes: 0

Related Questions