views:

67

answers:

0

Hi,

I have to parse (for localization purpose) .NET assemblies and create satellite assemblies. Currently, I take all the resources from the base assembly, parse them, and then create the satellite assembly. Most of the parts are solved, but if I parse an assembly containing a .xml public resource, when embedding the translated xml into the satellite one, the file is somehow linked (if I delete the xml outside the assm, the content in the assm is deleted also). I tried to use both:

assemblybuilder.addresourcefile - here the xml is linked

and

assemblybuilder.defineresource - here the xml is serialized.

Is there any solution to add the xml file without any side effects? Am I missing something?

I have checked previous posts but none of them answered the exact question.

Thank you.