All Products
Search
Document Center

Object Storage Service:Install the C# SDK (V1)

Last Updated:Jun 03, 2026

Install the OSS C# SDK to manage buckets, upload and download objects, manage data, and process images.

Prerequisites

  • Windows

    • .NET 2.0 or later

    • Visual Studio 2010 or later

  • Linux/Mac

    Mono 3.12 or later

Download the SDK

Install the SDK

  • Install OSS SDK for .NET in Windows

    • Install by using NuGet

      1. If NuGet is not installed in Visual Studio, install it first. Install NuGet client tools.

      2. In Visual Studio, create or open a project, then select .

      3. Search for aliyun.oss.sdk, find Aliyun.OSS.SDK (.NET Framework) or Aliyun.OSS.SDK.NetCore (.NET Core), select the latest version, and click Install.

    • Install by using a DLL file

      1. Download and extract the OSS SDK for .NET package.

      2. Compile the aliyun-oss-sdk project in Release mode to generate a DLL file.

      3. In Visual Studio Solution Explorer, right-click your project and select , and then select Browse.

      4. In the bin output directory, select the Aliyun.OSS.dll file, and click OK.

    • Install by importing a project

      To install from the SDK package or GitHub source code:

      1. In Visual Studio, right-click the Solutions and select Add Existing Project.

      2. Select the aliyun-oss-sdk.csproj file and click Open.

      3. Right-click your project name and select , select the Projects tab, select the aliyun-oss-sdk project, and click OK.

  • Install OSS SDK for .NET in Unix or macOS

    Install the SDK by using NuGet:

    1. In Xamarin, create or open a project, then from the Tools menu, select Add NuGet Packages.

    2. Search for Aliyun.OSS.SDK or Aliyun.OSS.SDK.NetCore, select the latest version, and click Add Package.