Solved

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

Posted on 2004-04-19
3
294 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

21 Experts available now in Live!

Get 1:1 Help Now