Hide menu
Loading...
Searching...
No Matches
Building C# Examples

C# examples are located in the subfolder examples/csharp.

Note
Save the development license file as ${install_dir}/examples/csharp/mtk_license.cs. For running the examples, place the matching runtime license file either next to this development license file or next to the example executable. This layout is intended for examples only. In production applications, place the runtime license file next to the application executable.

Building with Microsoft Visual Studio

C# examples target .NET 8 and can be built in two ways:

  • Microsoft Visual Studio: Open the provided solution file (*.sln), then build and run the required example.
  • .NET CLI: Build a selected example by specifying its project file:

    dotnet build <example>.csproj --configuration Release

    Build and run a selected example:

    dotnet run --project <example>.csproj --configuration Release