Output files from a Console App Build

G

Guest

Whenever I build even the very simplest application in C# (for example, a
console application which doesn't add any controls or anything), in the Debug
output directory I get three files:
- App.exe
- App.pdb
- App.vshost.exe

What are the last 2? Do I need them to run my app properly?

Alex
 
H

Henning Krause [MVP - Exchange]

Hello,

no, you don't need them. App.pdb contains debug symbols and App.vshost.exe
is a stub process created by Visual Studio for improving debugging
performance.

Best regards,
Henning Krause
 
J

Jeffrey Tan[MSFT]

Hi Alex,

Just as MVP Henning Krause pointed out, these 2 files are not the
requirement for deploying/running your Exe.

1. The pdb file is the symbol file for your assembly. See the link below
for more details:
http://blogs.msdn.com/arvindsh/archive/2006/08/30/731150.aspx

It is mainly used for debugging purpose. The link above contains the
setting of prevent the pdb from generating.

2. App.vshost.exe is a VS2005 hosting process to improve debugger
performance and enable new debugger features, see the link below for more
details:
http://msdn2.microsoft.com/en-us/library/ms242202(VS.80).aspx

If you do not like it, you may disable this feature with the steps below:
1. Open a project in Visual Studio.
2. On the Project menu, click Properties.
3. Go to the Debug Tab
4. Clear the Enable the Visual Studio hosting process check box.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top