ILMerge: how to configure the appropriate app.config

I'm just trying ILMerge to combine my application and necessary libraries into one executable. I use the command line to do some testing. I took an example project:

ilmerge /out:ProgramMerged.exe Program.exe Lib1.dll Lib2.dll

It seems to work. But what if I had Program.exe.config? Is it still applicable?

Anyone how to achieve this?

+3
source share
1 answer

The configuration file is always called the same as the EXE + .config file. Therefore, if you rename Program.exe to ProgramMerged.EXE, you need to copy / rename program.exe.config to the file programerged.exe.config

+9
source

Source: https://habr.com/ru/post/1733342/


All Articles