?
Solved

Question about embedded resource

Posted on 2004-11-16
1
Medium Priority
?
240 Views
Last Modified: 2010-04-15
Hello sirs,

I have a project for a .DLL in .NET that has an XML file as embedded resource. Is it possible to update/substitute this embedded resource in the DLL without having to re-compile the project? If yes, how?

Thanks in advance,

Leonardo
0
Comment
Question by:leodippolito
1 Comment
 
LVL 6

Accepted Solution

by:
melodiesoflife earned 1000 total points
ID: 12600357
If you want to change your XML file without recomplied your project, please put your XML file to a dll resource only (your code should be in another dll).

1. You can use reseditor in the samples of VS .Net to make your resource from XML file. The reseditor is in:
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\Tutorials\resourcesandlocalization\reseditor

2. After reseditor made your resource, use Assembly Link tool to make your dll resource. The command is:
al /t:lib /embed:"c:\a1.resources" /embed:"c:\a2.resources" /out:"c:\a.resources.dll" /fileversion:"1.0" /productv:"1.0" /comp:"Your company" /descr:"Your description" /copy:"Copyright (c) 2004" /prod:"Product ID" /v:"1.0"

+ a1.resources and a2.resources is resource file created by reseditor.

3. Now you have a.resource.dll, you can use ResourceManager Class to read your resource. Whenever you want to change you XML file, you only need to change a.resource.dll

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question