WiXSharp + ngen

Nov 10, 2016 at 11:22 PM

does WixSharp have any ngen interface or function?

Nov 11, 2016 at 10:49 AM
No, there is none.
Though... I am curious what would be the scenario when ngen is useful?
Nov 11, 2016 at 2:10 PM
Hello Oleg,

pre-jitting the assemlies for faster startup.

Nov 12, 2016 at 11:21 PM
Edited Nov 17, 2016 at 2:38 AM
Yes I know what ngen does :)
I just thought that you wanted to ngen Wix# managed project or actions and wondered what is the benefit. My bad.

If you want to ngen your installed product then arguably the best way to do this is to do it in AfterInstall event:
project.AfterInstall += project_AfterInstall;
static void project_AfterInstall(SetupEventArgs e)
    Process.Start("ngen.exe", Environment.ExpandEnvironmentVariables("%INSTALLDIR%My App.exe");
Marked as answer by ShanghaiMcCoy on 11/16/2016 at 2:23 PM
Nov 16, 2016 at 10:24 PM