Updated on 2025-12-15 GMT+08:00

Installing the SDK

If you have any questions during the development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference.

Method 1: Using the NuGet Package Manager in Visual Studio. The procedure is as follows:

  1. Open Visual Studio and choose Tools > NuGet Package Manager > Manage NuGet Packages for Solution.
  2. Search for esdk and in the results, select HuaweiCloud.ESDK.OBS if you want to install .NET Framework or HuaweiCloud.ESDK.OBS.Core if you want to install .NET Core.

Method 2: Installing the OBS .NET SDK. The example here uses the latest version.

  1. Download the OBS .NET SDK development package. For details, see SDK Download Links.
  2. Decompress the development package to obtain folder demo (sample code) and file Log4Net.config (log configuration file). In the release folder containing all SDK versions, select the latest version and decompress it. In the decompressed folder, you can obtain folder en (including files log4net.dll, the third-party log library file, and esdk_obs_.net.dll, the SDK library file) and file Log4Net.config (log configuration file).Start Visual Studio, open the project solution, and open the esdk_obs_.net.sln or esdk_obs_.net_core.sln file in the directory based on the project framework. Set the solution to Release and generate a solution. You can find esdk_obs_.net.dll and log4net.dll files in bin/Release in the decompression directory.
  3. Start Visual Studio and choose FILE > New > Project > Templates > Visual C# > Console Application to create a Console Application project.
  4. Right-click the new project and choose References > Add Reference and import file esdk_obs_.net.dll.