本土code代 [英] Native Code Generation

查看:122
本文介绍了本土code代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林新本机code世代在.NET 4.0中。在我的项目总共有一个单一的EXE文件超过500个的DLL文件。如果我要创建一个原生图像为所有那些使用ngen.exe安装它会是一个很大的过程DLL。所以我的问题是,是否有任何工具或脚本来创建本机映像的所有DLL文件。请帮我解决这个问题。

在此先感谢。

解决方案

刚刚引述的第一段的的例子在Ngen.exe文档页面的部分< A HREF =htt​​p://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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆