Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Oops.. how can I rebuild a RESX file?

Reply
Thread Tools

Oops.. how can I rebuild a RESX file?

 
 
=?Utf-8?B?ZGhucml2ZXJzaWRl?=
Guest
Posts: n/a
 
      02-02-2005
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S29zdGFkaW4gS29zdG92?=
Guest
Posts: n/a
 
      02-02-2005
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

 
Reply With Quote
 
 
 
 
=?UTF-8?B?QW5kZXJzIE5vcsOlcw==?=
Guest
Posts: n/a
 
      02-02-2005
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/
 
Reply With Quote
 
=?Utf-8?B?ZGhucml2ZXJzaWRl?=
Guest
Posts: n/a
 
      02-02-2005
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/
>

 
Reply With Quote
 
Hrvoje Vrbanc
Guest
Posts: n/a
 
      02-02-2005
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" <> wrote in message
news:07F1B889-19D5-481C-A083-...
> 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/
>>



 
Reply With Quote
 
=?Utf-8?B?ZGhucml2ZXJzaWRl?=
Guest
Posts: n/a
 
      02-02-2005
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

 
Reply With Quote
 
=?Utf-8?B?ZGhucml2ZXJzaWRl?=
Guest
Posts: n/a
 
      02-02-2005
Yeh, could have done that as a last resort, but luckily I didn't need to! )

"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" <> wrote in message
> news:07F1B889-19D5-481C-A083-...
> > 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/
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build action for the Resx file,.. Need the resx file outside DLL while publishing it.. Help needed Rahul ASP .Net 0 11-28-2006 09:26 PM
Weekend DC rebuild James MCSE 29 09-19-2005 04:18 PM
Use .NET DLL from VB6 app -> broken references on rebuild? Gary McGill ASP .Net 9 12-06-2004 03:10 PM
how to force Mozilla 1.7 to rebuild all email index/summary files? Marvin Glenn, ASNN Firefox 1 06-23-2004 11:08 PM
aspx page changes not picked up by debugger unless do "Rebuild Solution" Bennett Haselton ASP .Net 5 08-19-2003 06:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57