MonoDroid 缺乏对 System.IO.Ports 的支持 [英] MonoDroid lacks support for System.IO.Ports

查看:22
本文介绍了MonoDroid 缺乏对 System.IO.Ports 的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用 C# .NET 4.0 编写的应用程序.我考虑使用 MonoDroid 使其也能在 Android 系统上运行.问题是,该应用程序严重依赖于 MonoDroid 中似乎不存在的 .NET Framework 命名空间 System.IO.Ports.对我来说有什么解决方案,所以我仍然可以使用 MonoDroid?

I have an application written in C# .NET 4.0. I consider using MonoDroid for making it run also on Android systems. Thing is, the application relies heavily on .NET Framework namespace System.IO.Ports which doesn't seem to exist in MonoDroid. What solution is there for me, so I could still use MonoDroid?

推荐答案

我已向 Mono for Android 添加了对串行端口支持的增强请求:

I've added an enhancement request for serial port support to Mono for Android:

https://bugzilla.novell.com/show_bug.cgi?id=687407

但是,我不确定它有多大用处,因为粗略搜索表明需要自定义 Linux 内核才能在 Android 上获得 RS232 串行端口支持,因此这可能有点不切实际.

However, I'm not sure how useful it would be, as cursory searching suggests that a custom Linux kernel is needed in order to get RS232 serial port support on Android, so that may be a bit of a non-starter.

还有 android-serialport-api...但维基也有建议重新编译内核.

There's also android-serialport-api...but the wiki also suggests recompiling the kernel.

假设您希望将其用于正常"使用(在 Android Market 上部署等),我不确定是否支持任何形式的串行端口.

Assuming you want this for "normal" use (deployment on the Android Market, etc.), I'm not sure serial ports are supportable in any form.

这篇关于MonoDroid 缺乏对 System.IO.Ports 的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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