Question about embedded resource

  • Thread starter Leonardo D'Ippolito
  • Start date
L

Leonardo D'Ippolito

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?

Thanks in advance,

Leonardo
 
L

Leonardo D'Ippolito

Use XML serialization instead of strict embedding

Can you give more details? I would prefer to update the embeded resource,
it it possible?

Thanks.

Leonardo
 
W

William Stacey [MVP]

Not sure about updating the assembly. If the assem is signed, then I don't
think you can as the resources are figured into the hash (I think). Even if
not signed, not sure I would go that route. At first start, read the xml
file into isolated storage and read/write the xml file as needed. To reset
defaults, re-get the xml file and poke it into ISO storage again. If your
using for config setting, this would also allow different users to have
their own config settings, etc.
 
W

William Stacey [MVP]

Great. Forgot to mention that you can embed the xml file in your assem (and
load it from assem) so you don't need to distribute it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top