Installing the OneKhusa C# SDK via NuGet

Prerequisites

  • .NET SDK installed for .NET 9 or above.
  • A C# project (Console, Web API, MVC app, Blazor app etc.).
  • Visual Studio 2022 or later (Windows/Mac), VS Code (latest), or any other C# IDE.

Method 1: .NET CLI

In your terminal, navigate to your project folder (where the .csproj file is located) and run: dotnet add package OneKhusa.SDK The dotnet add package command tells the .NET CLI to add the SDK as a dependency to your project.

Method 2: Visual Studio (Package Manager UI)

  1. Open your project in Visual Studio.
  2. Go to Project → Manage NuGet Packages….
  3. Click the Browse tab.
  4. Search for OneKhusa.SDK.
  5. Select the package from the results and click Install.

Method 3: Package Manager Console

Inside Visual Studio, open the Package Manager Console: Install-Package OneKhusa.SDK This installs the SDK into your project using NuGet PowerShell commands.

After Installation

Once installed, you can reference it in code like: using OneKhusa.SDK; Then configure the client with your credentials and start calling OneKhusa APIs.