سلام
من اکثر جوابها را خوندم ولی درست نفهمیدم ngen را از کجا باید گیر بیارم
برنامه مذکور یکی از ابزارآلات اصلی Framework است و با Framework نصب شده و در محل ان نیز قرار دارد
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen .exe
برنامه مذکور را میتوانید با سوییچ ؟/ در cmd اجرا کنید تا اطلاعات حالات مختلف سوییچ هایش را نشان دهد.
>ngen.exe /?
Usage: ngen <action> [args] [/nologo] [/silent] [/verbose]
ngen /? or /help
/nologo - Prevents displaying of logo
/silent - Prevents displaying of success messages
/verbose - Displays verbose output for debugging
Actions:
ngen install <assembly name> [scenarios] [config] [/queue[:[1|2|3]]
Generate native images for an assembly and its dependencies and install them in the Native Images Cache
If /queue is specified compilation job is queued up. If a priority is not specified, the default priority used is 3.
ngen uninstall <assembly name> [scenarios] [config]
Delete the native images of an assembly and its dependencies from
the Native Images Cache.
ngen update [/queue]
Update native images that have become invalid
If /queue is specified compilation jobs are queued up.
ngen display [assembly name]
Display the ngen state
ngen executeQueuedItems [1|2|3]
Executes queued compilation jobs.
If priority is not specified all queued compilation jobs are done.
If priority is specified compilation jobs with greater or equal.
priority than the specified are done.
ngen queue [pause|continue|status]
Allows the user to pause and continue the NGen Service Queue, and to query its status.
Scenarios:
/Debug - Generate images that can be used under a debugger
/Profile - Generate images that can be used under a profiler
/NoDependencies - Generate the minimal number of native images required by this scenario
Config:
/ExeConfig:<path to exe> - Use the configuration of the specified executable assembly
/AppBase:<path to appbase directory> - Use the specified directory as the appbase
ابزار فوق اسمبلی شما را به Native تبدیل کرده و به نوعی ان را نصب یا رجیستر میکند و Native شده آن را در زیر پوشه های C:\Windows\assembly قرار میدهد.
این Native سرعت بسیار خوبی دارد و مخصوص سخت افزار و سیستم عامل جاری از IL به Native کامپایل شده.
ولی باید توجه داشت که برای هر رایانه باید جداگانه عمل فوق انجام شود.
و اگر هم بتوانید نسخه Native کامپایل شده را از مسیر فوق بردارید، باز فایده ندارد و کار نخواهد کرد و حتماً باید برای هر رایانه جداگانه انجام شود.
===========================
من بعد از زدن پست فوق، صفحات قبلی تاپیک را هم دیدم، دوستان لینک msdn ابزار فوق را هم داده بودند، که بسیار کاملتر از توضیحات ناقص من است.
http://msdn.microsoft.com/en-gb/libr...cf(VS.80).aspx