Install the SDK Package
Updated at:2025-11-03
Runtime environment
The C# SDK toolkit can run in the Microsoft .NET Framework v4.6 environment.
Installation steps
- Download the CSDK compression toolkit from the official website# .
- After downloading, unzip
bce-dotnet-sdk-version.zipand copy it to the project folder. - In the Visual Studio project, navigate to "Add Reference -> Browse."
- Add the SDK toolkit
BceSdkDotNet.dlland third-party dependency toolkitslog4net.dllandNewtonsoft.Json.dll.
SDK directory structure
Plain Text
1BaiduBce
2 ├── Auth //BCE signature classes
3 ├── Http //BCE HTTP communication classes
4 ├── Internal //SDK internal classes
5 ├── Model //BCE common model classes
6 ├── Services
7 │ └── Bos //BOS service-related classes
8 │ ├── Model //Internal BOS models, such as Request or Response
9 │ ├── BosClient.cs //BOS client entry class
10 │ └── BosConstants.cs //BOS-specific constant definitions, such as permission constants, etc.
11 │ └── Sts //Classes related to Sts authentication
12 │ ├── Model //Internal BOS models, such as Request or Response
13 │ └── StsClient.cs //STS client entry class
14 ├── Util //BCE common utilities
15 │
16 ├── BceBaseException.cs //Basic exception class for BCE
17 ├── BceClientBase.cs //Basic class for BCE clients
18 ├── BceClientConfiguration.cs //Configuration for BCE HttpClient
19 ├── BceClientException.cs //BCE client exception class
20 ├── BceServiceException.cs //Exception class after BCE server interaction
21 ├── BceConstants.cs //Common constants for BCE (regions, request headers, error codes, etc.)
22 ├── DefaultRetryPolicy.cs //Default retry policy
23 └── IRetryPolicy.cs //Retry policy
