本文介绍了分发NGEN之前的程序集是否有意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从.是否有理由在安装时而不是在构建时优先使用NGEN装配?我并不特别在意安装时间,但这似乎是一个不必要的步骤,可以由我的构建自动化.

I've found a few interesting links on using NGEN as a final step in an installer from this post. Is there a reason it is preferred to NGEN your assemblies at setup time, instead of at build time? I'm not particularly concerned with setup time, but it just seems like an unnecessary step that could be automated by my build.

推荐答案

NGEN输出特定于计算机/CPU.您的构建机器可能不是生产机器(也许是不同的DotNet版本,AMD?INTEL ...谁知道..)

NGEN output is computer/CPU specific. your build machine will probably not be the production machine (maybe different DotNet version, AMD ? INTEL... who knows..)

这篇关于分发NGEN之前的程序集是否有意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 15:10