---
title: "C#"
description: "## [https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#examples](https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#examples)Examples | Name | Description | | --- | --- | | [NiHello.Net](https://dev.lips-hci.com/overview-3/ni-hello-2/) | simple hello program to demo openni device enumeration | | [SimpleRead.Net](https://dev.lips-hci.com/overview-3/simple-read/) | demo how to stream depth frame and read pixel data | ## Prerequisite…"
url: "https://dev.lips-hci.com/lipsedge-sdk-c-hashtag/c-hashtag/"
updated: "2025-07-28"
category: "LIPSedge™ SDK 1.x / LIPSedge™ SDK Languages & Libraries / C#"
tags:
  - LIPSedge SDK
---

# C#

## [https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#examples](https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#examples)Examples

| Name | Description |
| --- | --- |
| [NiHello.Net](https://dev.lips-hci.com/overview-3/ni-hello-2/) | simple hello program to demo openni device enumeration |
| [SimpleRead.Net](https://dev.lips-hci.com/overview-3/simple-read/) | demo how to stream depth frame and read pixel data |

## Prerequisite

Install cmake and opencv.

### [https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#windows](https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#windows)Windows

Install [cmake](https://cmake.org/download/), [OpenCV](https://opencv.org/releases/) and [Visual Studio](https://visualstudio.microsoft.com/zh-hant/downloads/) (we use VS2017).

## [https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#prepare-openni2-driver](https://dev.lips-hci.com/lipsedge-tm-sdk-languages-and-libraries/overview-3#prepare-openni2-driver)Prepare OpenNI2 driver

1. Go to `C:/Program Files` and Right-Click the folder `OpenNI2`. Enter into `Properties > Security > Edit > Users`, tick `Full Control > Apply > OK` to change permission of OpenNI2 folder.

![Csharp1 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp1.png)

![Csharp2 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp2.png)

![Csharp3 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp3.png)

2. Open cmake-gui and set the source code to `C:/Program Files/OpenNI2/Wrapper/Csharp` and build the folder to wherever you want. Then click `Configure`, choose your Visual Studio version and other options remain default. After configuring is done, click `Generate`. After generating is done, click `Open Project`.

![Csharp4 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp4.png)

3. After Visual Studio is opened, click Build -> Build Solution and wait for a while.

![Csharp5 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp5.png)

4. Go to `Program Files > OpenNi2 > Redist`. Copy all the files in the `Redist` folder to the `Debug / Release` folder

![Csharp6 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp6.png)

![Csharp7 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/Csharp7.png)
