Raspberry pi RPi WIN10物联网上的Rabbit MQ
我正在尝试在我的Visual Studio 2017 Raspberry Pi项目上安装RabbitMQ 我尝试了两种不同的方法:Raspberry pi RPi WIN10物联网上的Rabbit MQ,raspberry-pi,rabbitmq,iot,windows-10-iot-core,Raspberry Pi,Rabbitmq,Iot,Windows 10 Iot Core,我正在尝试在我的Visual Studio 2017 Raspberry Pi项目上安装RabbitMQ 我尝试了两种不同的方法: 1) This first : https://paolopatierno.wordpress.com/2015/08/17/windows-iot-core-and-m2mqtt-a-simple-marriage/ I'm trying to add RabbitMqClient instead of M2Mqtt used in this tutori
1) This first : https://paolopatierno.wordpress.com/2015/08/17/windows-iot-core-and-m2mqtt-a-simple-marriage/
I'm trying to add RabbitMqClient instead of M2Mqtt used in this tutorial.
I've got this error (in french) :
Install-Package : Le package RabbitMQ.Client 4.1.1 n'est pas compatible avec uap10.0 (UAP,Version=v10.0). Le package RabbitMQ.Client 4.1.1 prend en charge :
- net451 (.NETFramework,Version=v4.5.1)
- netstandard1.5 (.NETStandard,Version=v1.5)
But i use .NET 4.5.1 or +. And when I'm trying to add the "RabbitMQ.Client.dll" to my project, I've got the following error :
'A reference to '...' could not be added. The project targets '.NETCore' while the file reference targets '.NETFramework'. This is not a supported scenario.'
2) The second way i'm trying to explore is to create a new "Background Application (IoT)" but i have the same errors.
感谢您的帮助,并对糟糕的英语表示抱歉。目前,UWP中不支持RabbitMQ.Client,因为它有一些UWP中不支持的依赖项。所以,你得到了那些错误信息 但是.NETCore中支持RabbitMQ.Client 而且Windows iot core最近有.NET core可用(目前的版本不是官方版本) 注意:一些信息与预发布的产品有关,这些产品在商业发布之前可能会进行大量修改。Microsoft对此处提供的信息不作任何明示或暗示的保证。 因此,您可以在支持RabbitMQ.Client的Windows iot Core上运行.Net Core应用程序,例如控制台应用程序。您可以这样做:
dotnet添加包RabbitMQ.Client
[您的项目名称]\bin\Debug\netcoreapp2.0\win8 arm\publish
有关更多信息,请参考“”Helo Rita Han,非常感谢您的回答。我现在在一个核心控制台应用程序项目中有一个带有RabbitMQ的.exe。在这个项目中,我输入以下代码(worker.cs):当我从连接到我的RPi3的Powershell启动它时,.exe启动,如果有消息,使用我队列中的一条消息,但立即停止。你知道这个问题吗?再次使用Thx。您是否尝试过使用而不是Powershell?非常感谢!那就行了!!!你怎么解释呢?:)我还有最后一个问题,您知道是否可以将此.exe设置为服务?如果RPi3崩溃或重新启动,此.exe必须自动启动。再次感谢您的回复。您可以查看