Skip to main content
A newer version of this page is available. .

Improve Performance

The NGEN.exe tool allows you to improve CodeRush performance. This tool produces native binary images and installs them into the native image cache on the local computer. The runtime process can use native images from the cache instead of using the just-in-time (JIT) compiler to compile the original assembly.

You need administrative privileges to run NGEN.exe.

The system asks you for administrator privileges when it runs the NGEN Installer.

NGEN

If you start Visual Studio with administrator privileges, and NGEN performance improvement options are available, the system runs NGEN Installer automatically.

NGEN

NGEN compilation is performed in a separate process so you can close Visual Studio or keep it running after you start. You can see compilation progress in the notification area if Visual Studio is running.