All Products
Search
Document Center

Simple Log Service:Install Simple Log Service SDK for .NET

Last Updated:Oct 26, 2023

Before you can use Simple Log Service SDK for .NET to call the API operations of Simple Log Service, you must install Simple Log Service SDK for .NET. This topic describes how to install Simple Log Service SDK for .NET.

Prerequisites

  • Simple Log Service is activated. For more information, see Activate Simple Log Service.

  • An AccessKey pair is created and obtained. For more information, see AccessKey pair.

    An Alibaba Cloud account has permissions to call all API operations. If you use the AccessKey pair of an Alibaba Cloud account, security risks may occur. We recommend that you create and use a RAM user to call API operations or perform routine O&M. Make sure that the RAM user is granted the permissions to perform operations on Simple Log Service resources. For more information, see Grant permissions to a RAM user.

  • A .NET development environment is installed. Simple Log Service SDK for .NET supports Microsoft .NET Framework 3.5, 4.0, and 4.5. For more information, visit Microsoft Download Center.

  • Visual Studio 2022 or later is installed. For more information, visit Microsoft Visual Studio.

Install Simple Log Service SDK for .NET

You can create a project to install Simple Log Service SDK for .NET. The following example shows how to install Simple Log Service SDK for .NET by using Visual Studio 2022:

  1. Download the installation package of Simple Log Service SDK for .NET.

  2. Decompress the aliyun-log-csharp-sdk-master.zip installation package to a specified directory.

  3. Debug the SDK.

    1. In Visual Studio, right-click Solution Explorer and choose Add > Existing Project....

    2. In the window that appears, select SLSSDK40.csproj and click Open.

    3. Right-click the name of your project and choose References > Add Reference.... In the window that appears, click the Projects tab, select the SLSSDK40 project, and then click OK.

What to do next

Get started with Log Service SDK for .NET