Answer the question
In order to leave comments, you need to log in
How to inject an arbitrary resource into a .NET assembly?
There is some configuration xml file and there is an exe that reads it and performs the actions described in this XML. It is necessary to somehow programmatically combine them into one executable file, according to the principle of a self-extracting archive.
For example, let's say the executing module is called processor.exe. We wrote the xml-config config.xml and run some program that will take config.xml and inject it inside processor.exe.
The output should be one file, which, when run, will read the config inside itself and execute it.
How to do something like this?
Answer the question
In order to leave comments, you need to log in
If I understood you correctly, then use the assembly linker (al.exe) with the /embed parameter that comes with the .net framework
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question