The value of App. config can be understood to be static in memory, that is, the general program is running, and this value is not updated.
In fact, you just need to update the database path in the. exe.config file. Only need to restart the application after the update operation is complete
So that the configuration will take effect. In n multi-data, found. Vshost.exe process is vs2005 in order to facilitate trace debugging
In fact, this process can be manually disabled without affecting the execution of the application. Vshost.exe.config file with this
The configuration file for the process is not related to the application run.
The content of the app. Config file is automatically synced to Test.exe.Config when the EXE is generated. Because app. Config does not follow Ann
The package runs only when the build is useful.
Once generated, it has nothing to do with EXE!
In general, this is the case when you make the deployment of the installation package!
And you said the modification is EXE file runtime modification, so only modify the corresponding EXE. Config, not associated with the app. config file,
Executable files are read in the App.exe.config configuration
(for reference) http://blog.163.com/dreamman_yx/blog/static/26526894200911302256633/
App. Config. exe.config. Vshost.exe.config Configuration