For more information about app. config operations, seeHttp://developer.51cto.com/art/200908/146303.htm. However, I don't know if you have any questions.
E.g.
After the project is compiled, two configuration files (this project is used as an example), named "ABC. DLL. config, And the other name is "ABC. DLL. vshost ". The first file is the configuration file actually used by the project.ProgramAll changes made during the operation will be saved here; the second file is the originalCodeThe synchronization file of "app. config" will not be changed during the program running.
The problem arises. If we are a vsto project, I find that the ABC. dll. config will not change in the following situations. If we define the settings data, it will not change here. If the project is released, it will appear in the following directory, and it is called user. config.
C: \ Users \Your alias\ Appdata \ Local \ microsoft_corporation \RelatedprojecT \ *. * \ User. config