Given:
– an assembly (e.g. “SomeLib.dll”)
– a text file (e.g. “myconfig.xml”)
I need to embed the file myconfig.xml into the existing assembly SomeLib.dll
Please consider before pressing “Answer”: I know about resources embeding during compile (csc.exe .. /embedresource:file … ).
The thing is that I need to embed a resource after assembly has created.
Is it possible?
I also know about ILMerge. But havn’t found how it could help.
You can use Cecil for this: load an assembly, add a resource, save to an assembly.