在 Android 设备上开发 C#/.NET

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1443690/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 16:35:27  来源:igfitidea点击:

develop C#/.NET on Android devices

c#android.netmono

提问by 0xFF

I want to run C# programs on my HTC Magic, I can find the mono app on the Android market but I have no clue on how to run C# using.

我想在我的 HTC Magic 上运行 C# 程序,我可以在 Android 市场上找到单声道应用程序,但我不知道如何使用 C# 运行。

The code is just for fun, I don't want official support and such. After coding Visual Basic on windows mobile, I really want to code C# on Android, whether directly using some sort of editor if exists, or compiling it on a PC then installing it on Android.

代码只是为了好玩,我不想要官方支持之类的。在 windows mobile 上编写 Visual Basic 之后,我真的很想在 Android 上编写 C#,无论是直接使用某种编辑器(如果存在),还是在 PC 上编译它然后在 Android 上安装它。

If anyone knows a way to do such please let me know.

如果有人知道这样做的方法,请告诉我。

Thank you

谢谢

回答by Jon Skeet

There's the androidmonoproject, which I gather pretty much works but is in relatively early stages.

androidmono项目,我收集了很多作品,但还处于相对早期的阶段。

EDIT: More recently: Mono for Android

编辑:最近:Android Mono

回答by Jon Skeet

As I originally answered this over two years ago...

正如我两年前最初回答的那样......

These days I would look at Mono for Android, developed by the Mono team.

最近我会看看Mono 团队开发的Mono for Android

It's a commercial product, but yes, you can then sell your app on the Android Marketplace(aka Google Play store).

这是一个商业产品,但是是的,您可以在 Android Marketplace(又名 Google Play 商店)上销售您的应用程序

回答by Mahesh

Xamarin supports C# coding for both Android and iPhone, and is based on Mono. For more details, check out: http://xamarin.com/

Xamarin 支持 Android 和 iPhone 的 C# 编码,并且基于 Mono。有关更多详细信息,请查看:http: //xamarin.com/

回答by user3743101

You may want to have a look at dot42 at https://www.dot42.com/I've never tried it myself, tough looking at various articles, it seems that this may be a valid option.

您可能想在https://www.dot42.com/ 上查看 dot42我自己从未尝试过,艰难地查看了各种文章,似乎这可能是一个有效的选择。