生成缓存外机映像 [英] Generating Native Images outside the Cache

查看:166
本文介绍了生成缓存外机映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 NGEN.EXE ,以便产生我的组件机映像之前创建我的安装程序。我希望这将让我的二进制文件 反射 -proof。我是正确样?

I would like to use NGEN.EXE in order to generate native images of my assemblies before I create my installer. I am hoping this will keep my binaries Reflector-proof. Am I correct about this?

我刚刚认识到,所有原生影像,现正存放在本机映像缓存。有没有办法让本机二进制文件,我可以接包使用安装程序?而另一方面,有可能产生本机映像后,摆脱了原来的组件?

I have just come to understand that all native images are now being stored in the Native Image Cache. Is there a way to get native binaries which I can then package with an installer? On the other hand, is it possible to get rid of the original assemblies after generating the native images?

编辑:我使用的时候跟一个服务器,它采用的是硬codeD密钥进行加密的应用程序。在.NET,它变得可笑容易为乡亲染指的关键。

I am using an application which uses a hard-coded key for encryption when talking to a server. With .NET, it becomes ridiculously easy for folks to lay their hands on the key.

推荐答案

这是非常不支持NGEN和.NET Framework,但有第三方工具可以做到这一点,谷歌的.NET连接器。

This is very much not supported by NGEN and the .net framework, but there are 3rd party tools that can do this, google for ".net linker".

我不建议这样做,MS有不支持这一正当理由。

I recommend not doing it, MS have valid reasons for not supporting this.

这篇关于生成缓存外机映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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