Debug directory, release directory, bin directory, obj directory, vshost.exe.config file,. exe.config file Analysis "C #"

Source: Internet
Author: User

Debug directory, release directory, bin directory, obj directory, vshost.exe.config file,. exe.config file Analysis "C #" 2013-10-06Lone Wind Zhuo film from csdn blog read 558 ext. 4 Go to my library.Share:

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.

Debug directory, release directory, bin directory, obj directory, vshost.exe.config file,. exe.config file Analysis "C #"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.