Question about embedded resource

  • Thread starter Thread starter Leonardo D'Ippolito
  • Start date 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
 
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
 
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.
 
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.
 
Back
Top