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

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

Prerequisites

Before you install and use the Alibaba Cloud SDK for Python, an Alibaba Cloud account is created and an AccessKey pair is created. For details, see create an AccessKey pair.

Installation methods

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

(Recommended) Use dependency managers

You can use the NuGet package manager to install the Alibaba Cloud SDK for .NET. 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 Alibaba Cloud SDK for .NET.
dotnet add package aliyun-net-sdk-core

After the Alibaba Cloud SDK for .NET 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 Alibaba Cloud SDK for .NET

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 Alibaba Cloud SDK for .NET 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 Alibaba Cloud SDK for .NET on GitHub

Core library of the Alibaba Cloud SDK for .NET