By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,869 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,869 IT Pros & Developers. It's quick & easy.

Oops.. how can I rebuild a RESX file?

P: n/a
Yup - I'm having one of those days! I've just deleted the wrong RESX file (ie
one that was in use!) and now my project wont compile. How can I rebuild the
resx file, or get it back!? (didnt go into the bin!).

Ta
Dan
Nov 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
If you use sytem for version control like SourceSafe, you can restore it from
there. Otherwise I don't know what you can do about it.

"dhnriverside" wrote:
Yup - I'm having one of those days! I've just deleted the wrong RESX file (ie
one that was in use!) and now my project wont compile. How can I rebuild the
resx file, or get it back!? (didnt go into the bin!).

Ta
Dan

Nov 19 '05 #2

P: n/a
dhnriverside wrote:
Yup - I'm having one of those days! I've just deleted the wrong RESX file (ie
one that was in use!) and now my project wont compile. How can I rebuild the
resx file, or get it back!? (didnt go into the bin!).

Have you still got a .resources file? If so you can use the resgen.exe
tool to generate the .resx from the .resource file. If not you'll have
to use a tool, such as Reflector, to decompile the assembly to get hold
of the resources.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
Nov 19 '05 #3

P: n/a
Anders,

I've just downloaded Reflector and loaded my project's dll file from the bin
dir, and there is no resources for the lost RESX at all! I have the class
name, members etc in the namespace, but nothing under Resources.

I'm guessing that means there's no way to rebuild it?

"Anders Norås" wrote:
dhnriverside wrote:
Yup - I'm having one of those days! I've just deleted the wrong RESX file (ie
one that was in use!) and now my project wont compile. How can I rebuild the
resx file, or get it back!? (didnt go into the bin!).

Have you still got a .resources file? If so you can use the resgen.exe
tool to generate the .resx from the .resource file. If not you'll have
to use a tool, such as Reflector, to decompile the assembly to get hold
of the resources.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/

Nov 19 '05 #4

P: n/a
Is it viable in your situation to create a new ASP page, copy-paste relevant
pieces of HTML and code behind, delete the old file, rename the new one and
rebuild the application?

Hrvoje
"dhnriverside" <da*@musoswire.com> wrote in message
news:07**********************************@microsof t.com...
Anders,

I've just downloaded Reflector and loaded my project's dll file from the
bin
dir, and there is no resources for the lost RESX at all! I have the class
name, members etc in the namespace, but nothing under Resources.

I'm guessing that means there's no way to rebuild it?

"Anders Noras" wrote:
dhnriverside wrote:
> Yup - I'm having one of those days! I've just deleted the wrong RESX
> file (ie
> one that was in use!) and now my project wont compile. How can I
> rebuild the
> resx file, or get it back!? (didnt go into the bin!).

Have you still got a .resources file? If so you can use the resgen.exe
tool to generate the .resx from the .resource file. If not you'll have
to use a tool, such as Reflector, to decompile the assembly to get hold
of the resources.

Anders Noras
http://dotnetjunkies.com/weblog/anoras/

Nov 19 '05 #5

P: n/a
Just to let you know I've fixed it. Looking at the other RESX files in VS, I
noticed there's not a lot in them, then I noticed I could create them through
Add New Item, so I created a new resx file and just named it xxx.aspx.resx -
and it now compiles again!

Yay! Thanks for all suggestions - Reflector/Resourcer look very handy!

"dhnriverside" wrote:
Yup - I'm having one of those days! I've just deleted the wrong RESX file (ie
one that was in use!) and now my project wont compile. How can I rebuild the
resx file, or get it back!? (didnt go into the bin!).

Ta
Dan

Nov 19 '05 #6

P: n/a
Yeh, could have done that as a last resort, but luckily I didn't need to! :o)

"Hrvoje Vrbanc" wrote:
Is it viable in your situation to create a new ASP page, copy-paste relevant
pieces of HTML and code behind, delete the old file, rename the new one and
rebuild the application?

Hrvoje
"dhnriverside" <da*@musoswire.com> wrote in message
news:07**********************************@microsof t.com...
Anders,

I've just downloaded Reflector and loaded my project's dll file from the
bin
dir, and there is no resources for the lost RESX at all! I have the class
name, members etc in the namespace, but nothing under Resources.

I'm guessing that means there's no way to rebuild it?

"Anders Noras" wrote:
dhnriverside wrote:
> Yup - I'm having one of those days! I've just deleted the wrong RESX
> file (ie
> one that was in use!) and now my project wont compile. How can I
> rebuild the
> resx file, or get it back!? (didnt go into the bin!).
Have you still got a .resources file? If so you can use the resgen.exe
tool to generate the .resx from the .resource file. If not you'll have
to use a tool, such as Reflector, to decompile the assembly to get hold
of the resources.

Anders Noras
http://dotnetjunkies.com/weblog/anoras/


Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.