嵌入.Net运行时 [英] Embedding .Net Runtime

查看:58
本文介绍了嵌入.Net运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以嵌入.net运行时,以便主机操作系统上不需要.net吗?我正在通过查看以下内容来与Mono合作: http://mono-project.com/Embedding_Mono但似乎暗示使用外部模块来完成此任务.我的目标是拥有一个未安装.net运行时的可执行文件.我不知道如何在我的应用程序中将其配置为编译本机代码,链接单声道运行时以及编译C#代码并将其链接起来?

Am I able to embed the .net runtime so that .net is not required on the host operating system? I was looking at doing this with Mono by looking here: http://mono-project.com/Embedding_Mono but seems to allude to using external modules to accomplish this. My goal is to have one single executable with no installed .net runtime. I do not know how this would be configured in my application to compile the native code, link the mono runtime- as well as compile the C# code and link that as well?

推荐答案

您现在可以

You can now statically compile Mono assemblies as was just demonstrated at PDC. The purpose of doing this was to allow .Net applications to run on the iPhone, but this should work anywhere.

对此有一些限制;显然,它不能依赖于运行时生成的代码,因此Reflection.Emit不在了.

There are some limitations to this; obviously, it can't depend on runtime-generated code, so Reflection.Emit is out.

这篇关于嵌入.Net运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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