Is there a way to regenerate a missing .resx file?

B. Clay Shannon picture B. Clay Shannon · Nov 13, 2012 · Viewed 38.2k times · Source

I have the source for a project, but am missing the .resx file, which prevents compilation. Is there a way to re-generate a resx file for it? This is a C# project I created with Visual Studio 2010 Professional on an XP machine that I'm trying to open with Visual Studio 2012 Ultimate on a Windows 8 machine.

UPDATE

It (Resources.resx) was actually there (under Properties), so I guess "cannot be found" means: "I don't like the one you gave me."

When I mashed F6 to give it another try, I got the warning, "A custom tool 'ResXFileCodeGenerator' is associated with file 'Properties\Resources.resx', but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool."

also: "A custom tool 'SettingsSingleFileGenerator' is associated with file 'Properties\Settings.settings', but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool."

I ran "Run Custom Tool" for both Resources.resx and Settings.settings, and still get the same error and two warnings.

Answer

Milind Morey picture Milind Morey · Oct 22, 2013

Right click and remove .resx form project right click on form and update resource manager build project run project