Skip to content

Initialize Project

C#

First, find the C# version SDK download section in the resource downloads, and select SDK_CSharp_x64 to download.

1 Create Project, Import SDK

Select C# "Windows Forms App" to create.

Visual Studio New Project dialog selecting C# Windows Forms App to create the CSharp host computer project

After creating the project, copy the SDK into the newly created project folder.

File Explorer showing the Csharp_api SDK folder copied into the newly created Windows Forms project directory

Then place the dynamic library under the build output path.

Dynamic library nrc_host.dll placed under the project's build output path (bin folder)

In the Visual Studio 2022 top menu bar, click Project > Show All Files to display the files we just copied.

Visual Studio menu bar showing Project > Show All Files being toggled to display the copied Csharp_api folder in Solution Explorer

After completing the above steps, the "Csharp_api" folder we just copied will appear in the "Solution Explorer" on the left side.

Right-click "Csharp_api" and select Include In Project to include it.

Once done, click Project > Show All Files again in the Visual Studio 2022 top menu bar to uncheck Show All Files.

Click the local Windows debugger. If you are using a Release version of the library, you need to switch from Debug to Release.

Visual Studio Local Windows Debugger button set to Release configuration to run the project after SDK import

If there are no errors, it means we have successfully imported the SDK.

For more examples, see API Examples | Nabot Technology

  • IDE used: Visual Studio 2022
  • Compilation build tool: .NET 8.0