473,769 Members | 7,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oops.. how can I rebuild a RESX file?

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
6 6224
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.

"dhnriversi de" 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
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
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
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
"dhnriversi de" <da*@musoswire. com> wrote in message
news:07******** *************** ***********@mic rosoft.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
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!

"dhnriversi de" 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
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
"dhnriversi de" <da*@musoswire. com> wrote in message
news:07******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
19622
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.
0
499
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 the code-behind from the first page (mypage.aspx.cs). I hooked everything together and both aspx pages work great. In the process I renamed the code-behind file (mypage.aspx.cs). This caused a disconnect in the VS.NET IDE with the resx file. I...
4
3796
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 rebuild it all to ensure it is clean and does not have unnecessary code in it. (The Rebuild command does not do this.)
0
1691
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 content with other languages. We have quite a number of Resx file and each Resx file has enough items so there is a high probability that we might miss few nodes/items in RESx files of other language.
6
4609
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?
0
1649
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 different one. I tried the following code: System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(formDebayer::typeid));
0
2237
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 Content and set copy to output Directory property to Copy Always. I was expecting when i publish the web site I would see the resx file seperately and not packed inside the dll so that I can change the resx file dynamically. But to my surprise I...
7
12286
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 net and can't seem to get it to work. Can someone with expertise assure me this is possible as a Web Service (using C#)? If so, can someone provide the steps on how to get this working?
8
14948
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 cut and paste code that MSDN recommends for playing a simple wav file from inside an embedded file, like presumeably the 'resources' file .resx is. I want to embed the .wav file in a 'resource file' since I don't want the user storing the file on...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.