Yup - I'm having one of those days! I've just deleted the wrong RESX file (i
e
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
DanIf you use sytem for version control like SourceSafe, you can restore it fro
m
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 t
he
> resx file, or get it back!? (didnt go into the bin!).
> Ta
>
> Dan
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 t
he
> 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/
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:
> 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/
>
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" <dan@.musoswire.com> wrote in message
news:07F1B889-19D5-481C-A083-2E950B90A9FA@.microsoft.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:
>
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 throug
h
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 t
he
> resx file, or get it back!? (didnt go into the bin!).
> Ta
>
> Dan
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 releva
nt
> pieces of HTML and code behind, delete the old file, rename the new one an
d
> rebuild the application?
> Hrvoje
>
> "dhnriverside" <dan@.musoswire.com> wrote in message
> news:07F1B889-19D5-481C-A083-2E950B90A9FA@.microsoft.com...
>
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment