在.NET中编写Android应用程序 [英] Writing Android Application in .NET

查看:116
本文介绍了在.NET中编写Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我用C#开发了一个Windows应用程序。是否有一个简短而全面的方法来切换我的c#代码为Android。或者有什么方法可以使用Visual Studio开发Android OS 2.2或2.3应用程序。

我能理解Windows和Android有不同的起源。我要用Java重写所有代码。能否请您提出解决此问题的最佳方法。

感谢您的帮助

解决方案

您无法在Android上使用.NET Framework。您可能可以尝试 Mono [ ^ ],但是你不能使用Visual Studio .NET做开发工作。我从来没有听说过任何人在Android上使用Mono,但它是CLI的开源Linux实现。


你删除了之前的问题吗?



我提到了Mono支持的平台: http://www.mono-project.com/Supported_Platforms [ ^ ]。它说你可以在Android上使用带有x86和ARM架构的Mono。



如果你可以安装Mono,你可以使用Visual Studio(使用目标平台3.5或更早版本)在Android上开发和运行应用程序。您必须通过标准库或Mono支持的库来限制开发,而无需重新编译。例如,我使用 System.Windows.Forms 开发我的应用程序,并使用Mono在Linux上运行它们,即使这个库没有使用ECMA标准化。



由于某种原因,我之前的答案消失了,我不明白为什么。



-SA


你也可以使用xamarin进行android开发。



http://xamarin.com/platform [ ^ ]

Hi Friends,
I have developed a windows application in C#. is there a short and comprehensive way to switch my c# code for android. Or is there some way I can develop Android OS 2.2 or 2.3 applications using Visual Studio.
I can understand Windows and Android have different origins. I am to rewrite all the codes in Java. Can you please suggest the best approach to solve this difficulty.
Thanks for help

解决方案

You cannot use the .NET Framework on Android. You might be able to try Mono[^], but you cannot use Visual Studio .NET do do the developement work. I've never heard of anyone using Mono on Android, but it's the open source Linux implementation of CLI.


Did you remove your previous Question?

I referred to platforms supported by Mono: http://www.mono-project.com/Supported_Platforms[^]. It says you can use Mono with x86 and ARM architectures on Android.

If you can install Mono, you can use Visual Studio (use target platform 3.5 or earlier) for development and run the applications on Android. You have to confine your development by standard libraries or those supported by Mono without recompilation. For example, I develop my applications using System.Windows.Forms and run them on Linux with Mono, even though this library is not standardized with ECMA.

By some reason, my previous Answer disappeared, I have no idea why.

—SA


You also can use xamarin for android development.

http://xamarin.com/platform[^]


这篇关于在.NET中编写Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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