Ich versuche RabbitMQ auf meinem Visual Studio 2017-Projekt für Raspberry Pi zu installieren.Kaninchen MQ auf RPi WIN10 IoT
Ich versuche von 2 differents Möglichkeiten:
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.
Vielen Dank für Ihre Hilfe und sorry für die schlechte Englisch.
Helo Rita Han, Vielen Dank für Ihre Antwort. Ich habe jetzt eine .exe mit RabbitMQ in einem Core Console App-Projekt. In diesem Projekt habe ich diesen Code (worker.cs): https://www.rabbitmq.com/tutorials/tutorial-two-dotnet.html Wenn ich lauge es von Powershell mit meinem RPi3 verbunden ist, der .exe Start, konsumiere eine Nachricht von meiner Warteschlange, wenn es Nachrichten gibt, aber sofort aufhören. Hast du eine Ahnung von diesem Problem? Danke nochmal. –
Haben Sie versucht, [Putty] (http://www.putty.org/) anstelle von Powershell zu verwenden? –
Vielen Dank! Das funktioniert !!! Wie kannst du das erklären? :) Ich habe eine letzte Frage, weißt du, ob es möglich ist, diese .exe als Dienst einzustellen? Wenn der RPi3 abstürzt oder neu startet, muss diese .exe automatisch gestartet werden. Nochmals vielen Dank für Ihre Antworten. –