This page lists each version of the Simple Message Queue (formerly MNS) SDK for C#, with release dates, download links, and changes. Use the latest version for the best performance and stability.
Get started
-
Download the SDK zip for the version you need from the version list below.
-
Extract the zip and import the folder into Visual Studio as a solution. Select the AliyunSDK_MNS_Sample project.
-
In the AliyunSDK_MNS_Sample project, browse the sample code files. Each file demonstrates a different operation.
-
Open the file you want to run in the Aliyun_MNS_Sample project. Set your AccessKey ID, AccessKey secret, and endpoint. Store credentials in environment variables instead of hardcoding them: Replace the following placeholders with your values:
Set the
MNS_AK_ENVandMNS_SK_ENVenvironment variables before you run the application.Placeholder Description Example <your-endpoint>Your SMQ endpoint URL http://1234567890123456.mns.cn-hangzhou.aliyuncs.comprivate static readonly string _accessKeyId = Environment.GetEnvironmentVariable("MNS_AK_ENV"); private static readonly string _secretAccessKey = Environment.GetEnvironmentVariable("MNS_SK_ENV"); private const string _endpoint = "<your-endpoint>"; // Example: http://<account-id>.mns.cn-hangzhou.aliyuncs.com -
Set the file as the startup object and run it.
Version history
1.3.8 (2017-08-25)
Download SMQ SDK for C# v1.3.8
Features added
-
Added support for Security Token Service (STS) through Resource Access Management (RAM), enabling temporary credential-based access.
1.3.7 (2017-03-10)
Download SMQ SDK for C# v1.3.7
Bugs fixed
-
Fixed JSON serialization for the
BatchSendMessageoperation.
1.3.6 (2016-12-19)
Download SMQ SDK for C# v1.3.6
Features added
-
Phone numbers can now be used as subscription endpoints for topics.
1.3.5 (2016-11-01)
Download SMQ SDK for C# v1.3.5
Features added
-
Added the
MessageTagparameter for thePublishMessageandSubscribeoperations, enabling message filtering by tag.
1.3.4 (2016-10-10)
Download SMQ SDK for C# v1.3.4
Other changes
-
Removed built-in MD5 checksum verification from the SDK.
1.3.3 (2016-06-07)
Download SMQ SDK for C# v1.3.3
Features added
-
The
ReceiptHandleis now returned whenDelaySecondsis set on a message.
1.3.2 (2016-05-31)
Download SMQ SDK for C# v1.3.2
Bugs fixed
-
Fixed the
ContentFormatparameter configuration in theSubscribeoperation.
1.3.1 (2016-05-18)
Download SMQ SDK for C# v1.3.1
Bugs fixed
-
Fixed the
Priorityparameter configuration in theSendMessageoperation.
1.3.0 (2016-05-17)
Download SMQ SDK for C# v1.3.0
Features added
-
Added the
LoggingEnabledparameter. -
SMQ queues and email addresses can now be used as subscription endpoints for topics.
-
Added support for .NET Framework 3.5.
1.1.3 (2016-03-17)
Download SMQ SDK for C# v1.1.3
Features added
-
Added the
GetNativeTopicmethod to theMNSClientclass.
1.1.2 (2016-02-19)
Download SMQ SDK for C# v1.1.2
Features added
-
Added sample code for starting an HTTP server that processes topic messages.
1.1.1 (2016-02-18)
Download SMQ SDK for C# v1.1.1
Features added
-
Added support for the
PublishMessageoperation on SMQ topics.
1.1.0 (2016-01-05)
Download SMQ SDK for C# v1.1.0
Features added
-
Added topic support (pub/sub messaging model).
1.0.0 (2015-09-10)
Download SMQ SDK for C# v1.0.0
Initial release of the Simple Message Queue (formerly MNS) SDK for C#.