How do I run nGen at the end of the installation (MSI)?

前端 未结 6 1023
耶瑟儿~
耶瑟儿~ 2021-02-14 01:55

I would like to execute nGen at the end of my installation simply to improve the perceived performance of the first startup of my application. How could I do that? Is there are

6条回答
  •  情话喂你
    2021-02-14 02:17

    You can ngen your assembly using a custom installer action. The following link explains this in further detail:

    http://www.dotnetperls.com/ngen

    I can also remember a good discussion of Paint.NET's installer (which includes .NET Framework bootstrapping, pre-JITting etc.), but I cannot find it at the moment. I'll edit this post if I come across it again.

提交回复
热议问题