WinForms FAQ - Performance

Find answers for the most frequently asked questions
Expand All Collapse All

Ngen.exe allows you to install the native image of an assembly into the native image cache, resulting in quicker loading and execution of the assembly.

For example:

ngen [options] [assemblyName | assemblyPath ]

ngen MyAssembly.dll
This creates a native image for MyAssembly.dll and installs it to the native image cache.

ngen /delete MyAssembly.dll
This removes the native image from the cache. 

It is also important to note that the native image must be created on the end user’s machine, as it is based on the system that creates it.

Permalink

Share with

Couldn't find the FAQs you're looking for?

Please submit your question and answer.