生成缓存外机映像映像、缓存

由网友(早已删除你ら)分享简介:我想用 NGEN.EXE ,以便产生我的组件机映像之前创建我的安装程序。我希望这将让我的二进制文件 反射 -proof。我是正确样?I would like to use NGEN.EXE in order to generate native images of my assemblies before I cr...

我想用 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.

阅读全文

相关推荐

最新文章