Question about embedded resource

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,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.