在Mono上编译C#源代码 [英] Compiling C# source code on mono

查看:110
本文介绍了在Mono上编译C#源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我已经在.NET4.0的C#visual studio 2010上创建了一个项目,并且希望将此应用程序也部署在iOS和Android上.我很清楚CLI发行版及其为实现该目标而应支持的库,而我仅使用了mono支持的库.但是我不知道要使用哪个编译器.为此需要使用MonoDevelop吗?我希望避免使用所有的IDE,我拥有源代码,并且需要类似命令行编译器的功能来翻译适用于iOS和Android的C#代码.有帮助吗?

在此先感谢

Hello!

I have created a project on C# visual studio 2010 on .NET4.0 and I want this application to be deployed on iOS and Android as well. I''m well aware of the CLI distributions and the libraries they should support in order to achieve that goal and I have only used those libraries which are supported by mono. But I don''t know which compiler to use. Is it necessary to use MonoDevelop for that? My wish is to avoid all the IDEs, I have the source code and I need something like command line compiler to translate that C# code for iOS and Android. Any help?

Thanks in advance

推荐答案

.net,Android和iOS完全不同,需要使用各自的编译器进行编译.

在iOS上,情况更糟,因为对您不能使用的Reflection.Emit等增加了限制.

您可以编译为可移植的库,并在Windows,Android,iOS上使用该dll并具有可移植库的限制.
.net of Android and iOS are completely different and require to be compiled with the respective compilers.

In the case of iOS it is much worse since there are added restrictions on what you can not do like use Reflection.Emit etc.

You can compile to a portable library and use that dll on windows, android, ios with the restrictions that portable libraries have.


这篇关于在Mono上编译C#源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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