将 CIL 代码更改为 C# 中的 Native 代码
当您编译 C# 应用程序时,它会被编译为 CIL 代码,在运行时由框架解释,但我想知道是否可以生成本机 x86 EXE 文件存根我的申请。
这样就不可能在反编译器中直接打开我的应用程序。
PS 我不能使用混淆器来做任何事情。
Possible Duplicate:
Is there some way to compile a .NET application to native code?
When you compile a C# application, it is compiled to CIL code, to be interpreted by the framework when it is ran, but im wondering if its possible to generate a native x86 EXE file stub for my application(s).
This way it is not possible to directly open my applications in a decompiler.
P.S I cannot use a obfuscator for anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个名为 Salmander .NET Linker 的工具,但价格很高。就我个人而言,我从未使用过它,但我认为这样做没有意义。 官方网站
您还可以尝试使用ThinInstall虚拟化您的应用程序 或 Xenocode Virtualization Studio。我使用 Xenocode 的产品将 .NET 运行时嵌入到我的应用程序中,效果非常好。它会生成一个本机打包的可执行文件,其中包含您的程序集。
There is a tool called Salmander .NET Linker but it is offered for a high price. Personally I've never used it, but I see no point in doing that. Offical website
You could also try virtualizing you application using ThinInstall or Xenocode Virtualization Studio. I've used Xenocode's product to embed .NET runtime into my application and it worked great. It generates a native packed executable with your assemblies inside.
根据这个答案:将.NET可执行文件转换为本机可执行文件您正在寻找的内容for 称为 AOT
http://www.mono-project.com/AOT
或者,您可以查看此微软官方技术文档: http://msdn.microsoft.com/en-us/library/ht8ecch6(VS.71).aspx
According to this answer: Turning .NET executable into native executable what you are looking for is called AOT
http://www.mono-project.com/AOT
Alternatively, you can check this official Microsoft technical document: http://msdn.microsoft.com/en-us/library/ht8ecch6(VS.71).aspx