When I write a program today, The WebService address of the reference in the. exe.config file needs to be changed, and when using VS debugging, it is found that the corresponding item in the Vshost.exe.config is modified, and the corresponding item in the. exe.config is not modified, which results in a software restart. exe.config The old information in the Vshost.exe.config will overwrite the new information, after consulting the relevant information, finally understand some, recorded, for reference ~ 1, Vshost.exe.config and. exe.config The Vshost.exe.config file is identical to the content in the. exe.config file, unlike the. exe.config is a configuration file for EXE software, and Vshost.exe.config is a feature of VS that is designed to improve debugging performance while The generated support file, as indicated on MSDN, is the hosting process. This means that at the end of the package, only the. exe.config file needs to be included, not including the Vshost.exe.config file. 2. Debug directory and Release directory Debug is the debug directory, build debug version of the purpose is in the process of development debugging, the most high-performance work, mainly reflected in: The program's "debug" configuration with all the symbolic debugging information compiled, not optimized. (Optimizations complicate debugging because the relationship between the source code and the generated instruction is more complex) debugging information is saved in a. pdb file in the debug directory, and information such as breakpoints is recorded in the file. The release directory is the publishing directory, and the purpose of generating the release version is to form part of the final software that can be optimized, mainly in the following: the "release" configuration of the program is fully optimized and does not contain any symbolic debugging information. Generates a XmlSerializers.dll file (sequence or assembly),. Vshost.exe.manifest (an XML assembly, which is not required when the package is hit and can be switched off in Configuration Manager) In addition: The release directory will have vshost.exe.config and other debugging files, which is related to Configuration Manager settings, can be switched off: Project Properties->build->generate serialization Assembly set to Off 3. bin directory and obj directory The bin directory is used to save the project post-build assembly, it has debug and release two version of the directory, respectively, the corresponding folder for Bin/debug and Bin/release, this folder is the default output path, we can through: Project properties, Configuration Properties, Output path to modify.
The obj directory is used to hold the compilation results for each module, and in. NET, the compilation is done in sub-modules, and the compilation is merged into one after completion. DLL or. exe is saved to the bin directory. Because incremental compilation is the default at compile time, which means that only the changed modules are recompiled, obj saves the compilation results of each module to speed up the compilation. Whether you are using incremental compilation, you can set it by using incremental compilation, Advanced, Configuration Properties, project properties. |