欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

C# IDE VS2005中的Hosting Process (vshost.exe)作用介紹

 更新時(shí)間:2015年01月05日 11:20:37   投稿:junjie  
這篇文章主要介紹了C# IDE VS2005中的Hosting Process (vshost.exe)作用介紹,vshost.exe是一個(gè)宿主進(jìn)程,主要用來提高調(diào)試效率,需要的朋友可以參考下

寫在前面

最近在群里,有朋友問起這個(gè)vshost.exe進(jìn)程到底是什么?當(dāng)時(shí)確實(shí)不知道是個(gè)什么東東,給人的感覺是,經(jīng)??吹剿?,就是在啟動一個(gè)項(xiàng)目的時(shí)候,經(jīng)??吹剿?,就是沒細(xì)研究它是啥玩意兒。既然遇到了,就不能放過,就要研究個(gè)一二。

vshost.exe

通過名字Hosting Process我們可以翻譯為:宿主進(jìn)程。

The hosting process is a feature in Visual Studio 2005 that improves debugging performance, enables partial trust debugging, and enables design time expression evaluation. The hosting process files contain vshost in the file name and are placed in the output folder of your project. For more information, seeDebugging and the Hosting Process.

宿主進(jìn)程是vs2005中一個(gè)特性,用來提高調(diào)試效率,在設(shè)計(jì)時(shí)進(jìn)行表達(dá)式運(yùn)算和Partial-Trust調(diào)試。宿主進(jìn)程文件以x.vshost.exe命名,并且存放在項(xiàng)目的輸出目錄中。例如:

Hosting process files (.vshost.exe) are for use by Visual Studio 2005 and should not be run directly or deployed with your application..

宿主進(jìn)程文件(.vshost.exe)是vs2005使用的,不能脫離您的應(yīng)用程序直接運(yùn)行。

提高調(diào)試效率

宿主進(jìn)程(vshost.exe)創(chuàng)建一個(gè)與當(dāng)前應(yīng)用調(diào)試器相關(guān)聯(lián)的應(yīng)用域(Application Domain),執(zhí)行這個(gè)操作很明顯將增加開始調(diào)試到應(yīng)用程序啟動之間的時(shí)間,但是宿主進(jìn)程可以通過這個(gè)應(yīng)用域來提高調(diào)試效率和在應(yīng)用運(yùn)行期間保存應(yīng)用域和調(diào)試器的狀態(tài)。

Design-Time Expression Evaluation

現(xiàn)在你可以不需要運(yùn)行應(yīng)用程序,就可以在 Immediate 窗口進(jìn)行代碼測試。

Partial Trust 調(diào)試

應(yīng)用程序可以通過 Project Designer 的安全設(shè)置頁面指定為一個(gè)Partial Trust應(yīng)用,調(diào)試這類型的應(yīng)用需要特別初始化應(yīng)用域,而該初始化工作由vshost.exe來完成。

可以通過如下操作禁用該進(jìn)程

相關(guān)文章

最新評論