How do I generate .resx file from .cs file?

I have a .cs file for a windows form.  I somehow screwed up its .resx file.  How do I generate the .resx file from the .cs file?
shibaiAsked:
Who is Participating?
 
NTACCommented:
If you are getting the error saying that you don't have the resx file, you can open a blank solution, and drop in your *.cs file.  recompile and it should give you some of what you need.  Sometimes it doesn't come out right.

If you happened to have the *.resources file, you can do this:
The resgen is in the directory:
C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\Resgen.exe

You run it like
> resgen inputfile.resources outputfile.resx

Good luck
0
 
_TAD_Commented:


Do a REbuild of the project and then a REbuild of the solution.
0
 
shibaiAuthor Commented:
It didn't work.  The .resx file was deleted after being screwed up.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.