KeraLua Documentation

repository·main·Indexed 18 days ago

https://github.com/nlua/keralua

C# native bindings for Lua 5.4, enabling Lua integration within .NET environments including .NET Core, mobile (iOS, Android), desktop (Mac, UWP), and classic .NET 4.5.

Tokens
268
Snippets
2
Records
2
Agent score
14%

What's inside KeraLua

  1. Install KeraLua via NuGet

    main

    KeraLua provides C# native bindings for Lua 5.4. It is compatible with iOS, Mac, Android, UWP, and .NET. You can install it using the NuGet package manager.

    # Search for KeraLua on NuGet
    # https://www.nuget.org/packages/KeraLua
  2. Build KeraLua from source

    main

    To build KeraLua from the repository, you must first initialize and update the submodules. Depending on your target platform, use the corresponding solution file (.sln).

    Prerequisites

    Before building, fetch the submodules:

    git submodule update --init --recursive

    Target Solutions

    • Mac, iOS, tvOS: KeraLua.Mac.sln
    • Android: KeraLua.Android.sln
    • .NET Core: KeraLua.Core.sln
    • UWP: KeraLua.UWP.sln
    • Classic .NET 4.5: KeraLua.sln

    Build Steps (Classic .NET)

    To build the classic .NET 4.5 version, restore dependencies and use MSBuild:

    nuget restore KeraLua.sln
    msbuild KeraLua.sln
    git submodule update --init --recursive
    nuget restore KeraLua.sln
    msbuild KeraLua.sln