“类型或名称空间名称'Devices'在名称空间'Microsoft.Azure中不存在”

时间:2020-07-02 13:56:29

标签: azure

我是C#脚本语言的新手。我正在使用C#脚本将Azure功能连接到IoT Central。这样我就可以将遥测数据发送到IoT Central。从Azure门户本身进行操作。并出现类似

的错误
error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?)

此错误与软件包Microsoft.Azure.Devices.Client有关。

也就是说,在using Microsoft.Azure.Devices.Client;行中得到错误

我已经添加了function.proj文件,还用于在azure函数中添加nuget包。 。并尝试使用此nuget软件包的不同版本。我仍然遇到相同的错误。请帮助我解决此问题。

预先感谢

0 个答案:

没有答案
相关问题