本土code代 [英] Native Code Generation
问题描述
林新本机code世代在.NET 4.0中。在我的项目总共有一个单一的EXE文件超过500个的DLL文件。如果我要创建一个原生图像为所有那些使用ngen.exe安装它会是一个很大的过程DLL。所以我的问题是,是否有任何工具或脚本来创建本机映像的所有DLL文件。请帮我解决这个问题。
在此先感谢。
刚刚引述的第一段的的例子在Ngen.exe文档页面的部分< A HREF =http://msdn.microsoft.com/fr-fr/library/6t9t5wcf%28VS.80%29.aspx相对=nofollow> MSDN :
下面的命令生成ClientApp.exe本机映像,位于当前目录下,并安装映像本机映像缓存研究。如果配置文件存在的组件,Ngen.exe使用它。此外,将生成的ClientApp.exe任何引用.dll文件本机映像。
NGEN安装ClientApp.exe
所以,也许的 RTFM 的?
Im new to Native Code Generation in .Net 4.0. In my project there are totally 500+ DLL file for a single EXE file. If I have to create a Native Image for all those DLL using ngen.exe install it is going to be a big process. So My question is whether there is any tool or script to create the Native Image for all those DLL files. Please help me with this problem.
Thanks in Advance.,
Just quoting the very first paragraph of the Examples section of the Ngen.exe documentation page in MSDN:
The following command generates a native image for ClientApp.exe, located in the current directory, and installs the image in the native image cache. If a configuration file exists for the assembly, Ngen.exe uses it. In addition, native images are generated for any .dll files that ClientApp.exe references.
ngen install ClientApp.exe
So maybe RTFM?
这篇关于本土code代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!