WiXSharp + ngen

Nov 10, 2016 at 10:22 PM
Hi,

does WixSharp have any ngen interface or function?

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

pre-jitting the assemlies for faster startup.

Regards
Martin
Coordinator
Nov 12, 2016 at 10:21 PM
Edited Nov 17, 2016 at 1: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 9:24 PM
Thx