将 .NET 可执行文件转换为本机可执行文件 [英] Turning .NET executable into native executable

查看:57
本文介绍了将 .NET 可执行文件转换为本机可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以将在 .NET 中开发的应用程序转换为本机可执行文件(包括源代码)?

Is there any approach to convert an application developed in .NET into a native executable (sources are included)?

安装整个框架(直到 .NET Framework 3.5 SP1)需要很多时间 - 计算机并不总是从 Internet 更新.是否可以调用 NGen 来生成独立的可执行文件?

Installing the whole framework (up to .NET Framework 3.5 SP1) takes a lot of time - not always the computers are updated from the internet. Is it possible to call NGen in order to produce independent executables?

谢谢

推荐答案

尚不可用,但 Mono 项目团队正在开发 提前编译器 可以满足您的需求.目的是让 Mono 在 iPhone 上运行(如 Unity),但它应该适用于所有平台.

It's not available yet, but the Mono project team are working on an Ahead of Time compiler that will do what you are looking for. The intention is for Mono to work on the iPhone (like Unity) but it should work for all platforms.

它确实支持 Mono x86,但我不确定他们是否已经包含了包含在依赖类中的功能(尽管我从采访中听说,这是计划中的)

It does support Mono x86, but I'm not sure if they have included the feature that packs in dependent classes yet (though from an interview I heard, it's planned)

编辑 2: 目前支持包含依赖项,感谢 Dykam!

Edit 2: Including dependencies is currently supported, thanks Dykam!

这篇关于将 .NET 可执行文件转换为本机可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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