Write in front
Recently in the group, a friend asked what the Vshost.exe process was all about. At that time really do not know what is a thing, give people the feeling is, often see it, is in the start of a project, often see it, is not carefully study what it is. Since the encounter, you can not let go, we should study a one or two.
Vshost.exe
By name hosting process we can translate to: host processes.
The hosting process is a feature in Visual Studio 2005 that improves debugging performance, enables partial trust Debuggin g, and enables design time expression evaluation. The hosting process files contain vshost in the file name and is placed in the output folder of your project. For more information, seeDebugging and the Hosting Process.
The host process is a feature in vs2005 that is used to improve debugging efficiency, perform expression operations and Partial-trust debugging at design time. The host process file is named X.vshost.exe and is stored in the output directory of the project. For example:
Hosting process files (. vshost.exe) is for use by Visual Studio 2005 and should not being run directly or deployed with your Application.
The host process file (. vshost.exe) is used by VS2005 and cannot be run directly from your application.
Improve commissioning efficiency
The host process (Vshost.exe) creates an application domain (application domain) associated with the currently applied debugger, and doing so will obviously increase the time between the start of debugging and the start of the application. However, the host process can use this application domain to improve debugging efficiency and to save the application domain and debugger state while the app is running.
Design-time Expression Evaluation
Now you can test the code in the Immediate window without having to run the application.
Partial Trust Commissioning
Applications can be specified as a partial trust app through the Project Designer's security Settings page, and debugging this type of application requires a special initialization of the application domain, which is done by Vshost.exe.
You can disable the process by doing the following
Reference articles
http://msdn.microsoft.com/en-US/library/ms185331 (v=vs.80). aspx
[C #] Hosting Process (Vshost.exe)