
| What is the purpose of Ngen.exe in .NET?On compiling
        your source code, it will be converted to intermediate language which
        is then converted to machine code. The role and purpose of Ngen.exe in
        this process is shown below: 
 Image You can execute
        Ngen.exe using the following command: C# gives
        you yet another provision to schedule your assembly for precompilation.
        This is done using the command shown below: This 1 refers to the priority. Priority takes the value of 1 or 2 or 3. Precompilation of assemblies queued with priority 1 and 2 will be precompiled forcefully. But if you mention the priority as 3 then the precompilation will be done only when the machine is idle. So far you
        have seen how to install assemblies using Ngen.exe. Similarly you can
        also uninstall an assembly that is already installed using Ngen.exe. This
        is established using the following command: But one thing interesting and most important about this utility is that, native images generated using ngen.exe cannot be deployed in the server. They have to be created at the client side. For that, you have to include the above shown commands into your setup file which will be executed at the client side. Characteristics
        of Ngen.exe: 
        
 
 |