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 6 6195
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
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/
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/
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/
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
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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ant |
last post by:
Hello,
Why is there a choice between build Solution & Rebuild Solution in the IDE.
what is the difference? When would you use one over the other?
Many thanks for your thoughts
Ant.
|
by: David Krussow |
last post by:
I had an aspx page (mypage.aspx) with a code behind file (mypage.aspx.cs)
that in turn had a resx file (mypage.aspx.resx). I decided to create another
aspx page (myotherpage.aspx) that would reuse...
|
by: gsilvey |
last post by:
Is there a way to rebuild the code that is generated by the forms designer? It compiles, but it seems to have controls left in it that I previously removed using the designer. I'd like to just...
|
by: prabhupr |
last post by:
Hi Folks
I'm currently working on a Localization+Globalization project; for this
project, we need to generate ".Resx" files and we use "US English" Resx
file as the base version, to compare the...
|
by: ad |
last post by:
I wnat to load a file in an .resx file and transfer the file to a stream.
How can I do?
|
by: Steave |
last post by:
Hi, using Managed C++ (.Net 2.0), I want to embed some images within an
executable using a .resX file, and upon an event (in this case a combo
box changing), I want the picture box to update with a...
|
by: Rahul |
last post by:
Hi I have a Project A that is being reffered by another WEB project
Webber.
In Project A i am using a resx file to store some information in it.
I have m1de the Build Action of the Resx file to...
|
by: nws_reader |
last post by:
I have a web service that needs to return a particular string for one
of its web methods. I would like to manage the strings in a resource
file. I went through a lot of the help provided on the...
|
by: raylopez99 |
last post by:
I have the latest version of Visual Studio 2008 Professional, which
allows you to create resource files (this is the .resx file, no?),
unlike the Express version, which does not.
I am trying to...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |