Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Output files from a Console App Build

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Maghen - 10 Jun 2007 16:20 GMT
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
Henning Krause [MVP - Exchange] - 10 Jun 2007 16:33 GMT
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

> 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
[quoted text clipped - 7 lines]
>
> Alex
Jeffrey Tan[MSFT] - 11 Jun 2007 07:39 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.