问题描述
我想在我安装结束执行NGEN只是为了提高我的应用程序的第一次启动的感知性能。我怎么能这样做呢?是否有一些最佳做法?我可以肯定地说NGEN总是与.NET框架安装?
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 some best practices? Can I be sure that nGen is always installed with .NET Framework?
谢谢!
推荐答案
您可以使用自定义安装程序操作NGEN程序集。以下链接中进一步详细解释:
You can ngen your assembly using a custom installer action. The following links explain this in further detail:
的
我也记得Paint.NET的安装程序的一个很好的讨论(包括。 .NET框架引导,预JITting等),但此刻我不能找到它。如果我再次遇到它,我将编辑这个职位。
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.
这篇关于我如何在安装(MSI)的末尾运行NGEN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!