Solved

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

Posted on 2004-04-19
3
295 Views
Last Modified: 2006-11-17
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
Comment
Question by:shibai
3 Comments
 
LVL 22

Expert Comment

by:_TAD_
ID: 10863920


Do a REbuild of the project and then a REbuild of the solution.
0
 

Author Comment

by:shibai
ID: 10868554
It didn't work.  The .resx file was deleted after being screwed up.
0
 
LVL 4

Accepted Solution

by:
NTAC earned 250 total points
ID: 10872690
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now