我正在尝试让 Netduino 与 Azure 通信。我发现了其他几个项目,在它们的源代码中,它们像任何其他 Azure 项目一样使用 Microsoft.WindowsAzure 包。但在我的项目中,它声称无法解析包名称。
我发现我必须进入“管理 NuGet 包”并安装它,但是当我尝试时,它会停止 JSON 的安装并将其全部回滚。
这是我收到的错误消息:
Adding 'Newtonsoft.Json 5.0.8' to Netduino.
Uninstalling 'Newtonsoft.Json 5.0.8'.
Successfully uninstalled 'Newtonsoft.Json 5.0.8'.
Install failed. Rolling back...
Could not install package 'Newtonsoft.Json 5.0.8'.
You are trying to install this package into a project that targets '.NETMicroFramework,Version=v4.2',
but the package does not contain any assembly references or content files that are compatible with that framework.
For more information, contact the package author.
我还没有做什么?我做错了什么?
最佳答案
如果您运行的是 NETMF 4.2 或更高版本,则可以使用 NETMF.Json NETMF.Json on GitHub
我在 NetDuino 的实时发布/订阅客户端中使用它 XSockets NetMF client
关于c# - .Net Micro 与 Microsoft Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19423999/