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
-
Download from GitHub
-
Download previous versions
Install the SDK
-
Install OSS SDK for .NET in Windows
-
Install by using NuGet
-
If NuGet is not installed in Visual Studio, install it first. Install NuGet client tools.
-
In Visual Studio, create or open a project, then select .
-
Search for
aliyun.oss.sdk, findAliyun.OSS.SDK(.NET Framework) orAliyun.OSS.SDK.NetCore(.NET Core), select the latest version, and click Install.
-
-
Install by using a DLL file
-
Download and extract the OSS SDK for .NET package.
-
Compile the aliyun-oss-sdk project in Release mode to generate a DLL file.
-
In Visual Studio Solution Explorer, right-click your project and select , and then select Browse.
-
In the
binoutput 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:
-
In Visual Studio, right-click the Solutions and select Add Existing Project.
-
Select the aliyun-oss-sdk.csproj file and click Open.
-
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:
-
In Xamarin, create or open a project, then from the Tools menu, select Add NuGet Packages.
-
Search for
Aliyun.OSS.SDKorAliyun.OSS.SDK.NetCore, select the latest version, and click Add Package.
-