Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

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?
0
shibai
Asked:
shibai
1 Solution
 
_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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now