Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the appname.vchost.exe file

Every time I build my .NET application with Visual Studio, I got a appname.vchost.exe file along with my appname.exe file. This file doesn't exist when I build with command line commands. So,

  • What is this *.vchost.exe file for?
  • Could someone explain its working mechanism in detail?

Thanks.

like image 957
smwikipedia Avatar asked Oct 13 '10 07:10

smwikipedia


2 Answers

I assume you're talking about the VS hosting process. It is used for

  • Improved Debugging Performance
  • Partial Trust Debugging
  • Design-Time Expression Evaluation

You can turn it off in the project settings. If you want to change the project settings template once and for all please see this question.

like image 81
Brian Rasmussen Avatar answered Sep 28 '22 04:09

Brian Rasmussen


Its a version of the application used by visual studio to allow you to debug your application, if you clean your solution and build in release mode it will not be there.

Cheers

like image 34
Iain Avatar answered Sep 28 '22 02:09

Iain