The WixNetfxExtension includes a set of custom actions to compile native images using Ngen.exe.