【问题标题】:.NET nanoframework: Assembly references cannot be resolved.NET 纳米框架:无法解析程序集引用
【发布时间】:2021-10-28 07:07:39
【问题描述】:

我正在尝试通过我的 ESP32-WROOM 开发板将 Iot.Device.Bmxx80 库用于一个非常简单的项目。但是,我无法在我的系统上部署和运行它,因为系统似乎无法在设备上加载必要的程序集。

要重现它,只需创建一个新的空白 .NET nanoframework 项目并添加以下 NuGet 包(默认程序即可 - 无需更改):

  • nanoFramework.Hardware.Esp32
  • nanoFramework.Iot.Device.Bmxx80

之后,只需在微控制器上运行应用程序即可。

在输出选项卡中,在所有库都部署到它之后,我得到以下错误输出:

    Resolving.
Link failure: some assembly references cannot be resolved!!

Assembly: Iot.Device.Bmxx80 (1.0.0.0) needs assembly 'UnitsNet.Pressure' (1.0.0.0)
Assembly: Iot.Device.Bmxx80 (1.0.0.0) needs assembly 'UnitsNet.Temperature' (1.0.0.0)
Assembly: Iot.Device.Bmxx80 (1.0.0.0) needs assembly 'UnitsNet.RelativeHumidity' (1.0.0.0)
Assembly: Iot.Device.Bmxx80 (1.0.0.0) needs assembly 'UnitsNet.Length' (1.0.0.0)
Assembly: Iot.Device.Bmxx80 (1.0.0.0) needs assembly 'UnitsNet.Duration' (1.0.0.0)
Assembly: Iot.Device.Bmxx80 (1.0.0.0) needs assembly 'UnitsNet.ElectricResistance' (1.0.0.0)
Error: a3000000
Waiting for debug commands...
The program '[1] .NET nanoFramework application: Managed' has exited with code 0 (0x0).

有什么想法我在这里做错了吗?

【问题讨论】:

标签: c# microcontroller esp32 nanoframework


【解决方案1】:

正如 Jose 已经提到的,这是在提到的 GitHub 问题中修复的错误。代码现在运行良好。

【讨论】:

    猜你喜欢
    • 2015-03-20
    • 1970-01-01
    • 2018-05-05
    • 2018-07-16
    • 2012-01-23
    • 1970-01-01
    • 1970-01-01
    • 2012-04-23
    相关资源
    最近更新 更多