我是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软件包的不同版本。我仍然遇到相同的错误。请帮助我解决此问题。
预先感谢