【问题标题】:Namespace name "Device" does not exist in the namespace命名空间名称“设备”在命名空间中不存在
【发布时间】:2019-06-26 09:34:52
【问题描述】:

我在使用 System.Device 时遇到问题,找不到解决方案

我正在开发一个软件,并想获得设备的位置。通过引用 .NET Framework,我想使用 GeoCoordinateWatcher。

在我的代码中,我包含了System.Device.Location 并向项目中添加了两个包(GeoCoordinate 和System.Device.Location.Portable)。在monodevelop中运行和调试代码时没有出现错误,但是当我用mcs编译代码时出现标题中提到的错误:

命名空间名称“设备”在命名空间中不存在

我使用 RasPi 进行编码和编译。

知道问题出在哪里吗?

【问题讨论】:

  • 请澄清:“我正在使用 RasPi”——这是否意味着您的程序在 Raspberry Pi 上运行?如果是这样 - 添加标签 [raspberry-pi]

标签: c# raspberry-pi geolocation device


【解决方案1】:

Mono 不支持 System.Device: https://github.com/mono/mono/tree/master/mcs/class

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-19
  • 1970-01-01
  • 2012-05-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多