Visual Studio : can't find "resource file" in list of items to add to project

bob picture bob · Feb 26, 2017 · Viewed 32k times · Source

I'm on VS Community 2017 RC. I'd like to add a resource file (.resx) to my project but this item type is not listed in the itemscan't find resource file type

Have I missed something ? Do I need to install anything on top of my Visual Studio to be able to manage resource files ?

Answer

Slime recipe picture Slime recipe · Feb 26, 2017

At the top right corner you have a searchbox, try typing it there and see if it finds anything.

If it doesn't, select a text file in the new item dialog and change its extension to

resx

It should now open the new file with the resources designer. Now open the properties pane for that file (right click it in the solution explorer) and make sure it has the following set:

  • Build Action: Embedded resource
  • Custom tool: ResXFileCodeGenerator (or PublicResXFileCodeGenerator to generate a designer class with public visibility)

UPDATE: According to the link Chris posted, my suggestion won't help if you have the express edition of visual studio.