Help Center/ Image Recognition/ SDK Reference/ Using the .NET SDK/ Preparing a .NET Development Environment
Updated on 2024-12-05 GMT+08:00

Preparing a .NET Development Environment

Configuring the Environment

To use the .NET SDK of Image Recognition, you need to configure the .Net development environment.

  1. Download the latest Visual Studio from the Visual Studio official website.
  2. Click the .exe file to start installation.
  3. During the installation, select ASP.NET and web development on the Workloads tab page.

Obtaining and Installing an SDK

You can install the .Net SDK using commands or Visual Studio.

Use .NET CLI to install the .Net SDK.
dotnet add package HuaweiCloud.SDK.Core 
dotnet add package HuaweiCloud.SDK.Image

Use Package Manager to install the .Net SDK.
Install-Package HuaweiCloud.SDK.Core 
Install-Package HuaweiCloud.SDK.Image

If you use Visual Studio, choose Tools > NuGet Package Manager > Manage NuGet Packages for Solution..., and search for and install HuaweiCloud.SDK.Core and HuaweiCloud.SDK.Image.