通用Windows项目VS17,无法安装Microsoft.Azure.Devices.Client IOT SDK

问题描述

尝试使用Nuget在VS17中安装1.31.2版时,我收到以下失败报告。

错误NU1202软件包Microsoft.Azure.Devices.Client 1.31.2与uap10.0.15063(UAP,Version = v10.0.15063)/ win10-arm [及其他Windows 10版本]不兼容。软件包Microsoft.Azure.Devices.Client 1.31.2支持:

  • net451(.NETFramework,Version = v4.5.1)
  • net472(.NETFramework,Version = v4.7.2)
  • netstandard2.0(.NETStandard,Version = v2.0)
  • netstandard2.1(.NETStandard,Version = v2.1)

任何有关如何解决此问题的建议将不胜感激。我需要使用早期版本吗?

解决方法

您需要满足所描述的操作系统和硬件兼容性,才能安装和使用Microsoft.Azure.Devices.Client:

https://github.com/Azure/azure-iot-sdk-csharp#os-platforms-and-hardware-compatibility

enter image description here

另请参阅:Prepare your development environment

不需要Visual Studio来构建SDK 。这可能不足以运行某些需要在计算机上安装Visual Studio和其他SDK或框架的示例。”

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...