我可以在 Windows 10 IoT Core 上安装 Google.Apis.Auth 或 Google.Auth.Calendar 吗?

Can I install Google.Apis.Auth or Google.Auth.Calendar on Windows 10 IoT core?

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

Error NU1202 Package Google.Apis.Auth.AspNetCore 1.38.0 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm-aot. Package Google.Apis.Auth.AspNetCore 1.38.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)

这是不受支持还是我可以更改或升级某些内容?

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

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