Set up your development environment and install the ApsaraMQ for RocketMQ SDK for C# before you send and subscribe to messages.
Prerequisites
Install the following software:
.NET: Install .NET. After installation, verify your .NET version:
dotnet --versionVisual Studio 2015 or later: Install Visual Studio.
Install SDK for C#
Download the SDK for C# and project file from GitHub and extract the package. The extracted package contains the following items:
Item Description Aliyun_MQ_SDK SDK directory Aliyun_MQ_SDK.sln Visual Studio solution file Open Aliyun_MQ_SDK.sln in Visual Studio to import the SDK project.
In the Aliyun_MQ_SDK project, open Samples.cs. This file contains sample code for sending and subscribing to messages. Replace the placeholder values with your actual values, save the file, and run it.
What's next
Use the sample code in Samples.cs as a starting point to send and subscribe to messages with ApsaraMQ for RocketMQ.