How Visual Studio does not generate the. Vshost.exe and. pdb files

Source: Internet
Author: User

When you compile a project by using Visual Studio, files with the extension ".vshost.exe" and ".pdb" are also generated, even when "release" is selected, by default.

First, explain the role of each file:

. pdb Files:

Program database file. By default, the PDB for debug is full, saving debugging and project state information, assertions, stack checks, and so on, which can be incrementally linked to a program's debug configuration.

The default setting for release specifies that the PDB is pdb-only, which error is saved and which line the error is in.

. vshost.exe File:

Host process files (VS host processes) are a feature in Visual Studio 2005, primarily to improve debugging performance. Release is best removed.

. vshost.exe.manifest File:

is a. manifest-suffix XML file that organizes and describes isolated applications and parallel components for the binding and activation of COM classes, interfaces, and libraries, which were previously stored in the registry.

Manifests also developed the files that make up the assembly and the Windows classes, which are also best deleted when release.

Second, the method of not generating these files:

Methods for not generating. vshost.exe files

, open the Debug tab of the project properties, make the constituent selected as "release", remove "visual Studio Hosting process valid" check after save.

Methods that do not generate. pdb files

, open the Build tab of the project properties, and then turn on "Verbose settings" after selecting "release". Saves the "debug information in output from"pdb only"to"none".

How Visual Studio does not generate the. Vshost.exe and. pdb files

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.