When I create and compile a "Hello, World!" application in C#, I get three files in the Debug folder apart from the main exe (e.g. HelloWorld.exe)
What purpose do these files serve?
The genuine vshost.exe file is a software component of Visual Studio by Microsoft. This hosting process is a Visual Studio feature to improve debugging performance, enable partial trust debugging, and enable design time expression evaluation.
vshost.exe. config file is where the . net runtime will look for the program's config.
This is the "hosting process". It is created whenever you build a project in the Visual Studio IDE. Its purpose is to provide support for improved F5 performance, partial trust debugging, and design time expression evaluation.
The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation. You can disable the hosting process if you need to.
The vshost.exe feature was introduced with Visual Studio 2005 (to answer your comment).
The purpose of it is mostly to make debugging launch quicker - basically there's already a process with the framework running, just ready to load your application as soon as you want it to.
See this MSDN article and this blog post for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With