【问题标题】:Can I install Google.Apis.Auth or Google.Auth.Calendar on Windows 10 IoT core?我可以在 Windows 10 IoT 核心上安装 Google.Apis.Auth 或 Google.Auth.Calendar 吗?
【发布时间】:2019-06-28 20:58:35
【问题描述】:

我已经编写了一些基于在 rasberry pi3 上运行的 Windows 10 IoT 核心的智能镜像代码。除了谷歌日历代码之外,这一切都在工作。我编写了一个桌面 UWP 应用程序,可以成功下载谷歌日历数据。当我尝试将其移植到 IoT 核心 UWP 项目时,我无法安装 Google api nuget 包。我得到了错误:

错误 NU1202 包 Google.Apis.Auth.AspNetCore 1.38.0 与 uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm-aot 不兼容。包 Google.Apis.Auth.AspNetCore 1.38.0 支持:netstandard2.0 (.NETStandard,Version=v2.0)

这只是不支持还是有什么我可以更改或升级的?

【问题讨论】:

    标签: .net uwp google-calendar-api iot windows-10-iot-core


    【解决方案1】:

    您需要在 UWP 项目的项目设置中将 minversion 设置为 16299(或更高),才能启用 netstandard2.0 库。

    这当然需要您在 Raspberry PI 上运行 OS build 16299 或更高版本(我希望您已经这样做了)。

    【讨论】:

    • 好的,这很有帮助 :-) 我是否安装 .net core 2.0 以获得对 netstandard 2.0.0.0 的引用?如果是这样,我应该怎么做才能将它也放在 Pi 上?
    • 不需要安装任何东西。只需确保将 UWP 项目设置中的 minversion 设置为 16299(或更高)。为了清楚起见,我在答案中添加了屏幕截图。
    猜你喜欢
    • 2017-02-22
    • 1970-01-01
    • 2017-04-16
    • 2019-06-22
    • 2019-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-06
    相关资源
    最近更新 更多