This topic describes how to install Alibaba Cloud SMS SDK for .NET. You can run the git clone command or use other methods to download the core library of the .NET SDK.

Note You must install the core library of the .NET SDK regardless of the method that you use to install the .NET SDK.

Prerequisites

Before you install and use the .NET SDK, an Alibaba Cloud account and AccessKey pair are created. For more information, see Create an AccessKey pair.

Installation methods

You can use the following two methods to install the .NET SDK:

(Recommended) Use dependency managers

You can use the NuGet package manager to install the .NET SDK. In Solution Explorer, right-click your project and select Manage NuGet Packages. In the NuGet panel that appears, click the Browse tab and enter aliyun-net-sdk-core in the search box. Select aliyun-net-sdk-core and click Install.

An alternative approach is to use the .NET command-line interface (CLI) to install the core library of the .NET SDK.
dotnet add package aliyun-net-sdk-core

After the .NET SDK is installed, you can use OpenAPI Explorer to generate the sample code of API operations for the SDK, and apply the sample code in your projects.

Download and install the .NET SDK

You can run the git clone command or use other methods to download the aliyun-net-sdk-core library, and implement a solution based on your business needs.

To download the aliyun-net-sdk-core library from GitHub, visit aliyun-net-sdk-core.

After the .NET SDK is installed, you can use OpenAPI Explorer to generate the sample code of API operations for the SDK, and apply the sample code in your projects.

Core library of the .NET SDK on GitHub

Core library of the .NET SDK