<< Click to Display Table of Contents >> Navigation: Themida > FAQ > XBundler > In my .NET application (test.exe) I want to to embed my .exe.config file (test.exe.config) with XBundler, but when I run my protected application (without the .config file) it does not see my embedded test.exe.config file. |
Embedding .exe.config files in .NET applications is a bit tricky for some applications. You have to embed your original “test.exe.config” file with XBundler (option “Never extract to disk”) but you have to ship your protected application with a “fake” or dummy “test.exe.config” file. This is because Windows checks the presence of a .config file before your application is launched. When your application reads information from the .config file, it will read it from the embedded one and not from the fake/dummy .config file. An example of a dummy .config file could be:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
</configuration>