All Products
Search
Document Center

ApsaraMQ for RocketMQ:Prepare the environment for SDK for C#

Last Updated:Mar 11, 2026

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:

Install SDK for C#

  1. Download the SDK for C# and project file from GitHub and extract the package. The extracted package contains the following items:

    ItemDescription
    Aliyun_MQ_SDKSDK directory
    Aliyun_MQ_SDK.slnVisual Studio solution file
  2. Open Aliyun_MQ_SDK.sln in Visual Studio to import the SDK project.

  3. 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.