This topic describes how to install OSS SDK for .NET.
Prerequisites
- Windows
- .NET 2.0 or later is required.
- Visual Studio 2010 or later is required.
- Linux/macOS
Mono 3.12 or later is required.
Download OSS SDK for .NET
Install OSS SDK for .NET
- Install OSS SDK for .NET in Windows
- Install by using NuGet
- If NuGet is not installed for your Visual Studio , you must first install NuGet. For more information, visit Install NuGet client tools.
- After you install NuGet, create a project or open an existing project in Visual Studio, and then choose .
- Enter aliyun.oss.sdk in the search box and click Search. Find Aliyun.OSS.SDK (applies to .NET Framework) or Aliyun.OSS.SDK.NetCore (applies to .Net Core) in the search results. Select the latest version, and click Install.
- Install by using a DLL file
- Download and decompress the installation package of OSS SDK for .NET.
- In Visual Studio, go to Solution Explorer and find your project. Right-click the project name and choose . In the dialog box that appears, select Browse.
- Find the directory to which the installation package is decompressed and select the Aliyun.OSS.dll in the bin folder. Click OK.
- Install by importing a project
If you download the SDK installation package or download the source code from GitHub and use the source code to install the SDK, perform the following operations:
- In Visual Studio, right-click and select Solution from the menu that appears. Select Add > Existing projects.
- In the dialog box that appears, select the aliyun-oss-sdk.csproj file. Click Open.
- Right-click the name of your project and choose Projects tab, select the aliyun-oss-sdk project, and click OK. . In the dialog box that appears, click the
- Install by using NuGet
- Install OSS SDK for .NET in Unix and macOS
- Install by using NuGet
- In Xamarin, create a project or open an existing project. Select Add NuGet from Tools.
- Search and find Aliyun.OSS.SDK or Aliyun.OSS.SDK.NetCore. Select the latest version, and click Add Package to add the package to the project application.
- Install by using a DLL file
- Download and decompress the installation package of OSS SDK for .NET.
- In Xamarin, select your project in Solution. Right click and select Reference. In the menu that appears, select Edit References.
- In the Edit References dialog box, select .Net Assembly and click Browse. Find the directory to which the installation package is decompressed and select Aliyun.OSS.dll in the bin folder. Click Open.
- Install by using NuGet