Skip to content

EggyStudio/UltralightNet.Bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header.png

UltralightNet.Bundle

GitHub Packages License: MPL-2.0 .NET 10 Platform

A single-package .NET binding for the Ultralight HTML rendering engine.

This package bundles everything needed to embed Ultralight in a .NET application:

  • UltralightNet - managed bindings for the Ultralight C API
  • UltralightNet.AppCore - managed bindings for AppCore (windowing, font loader, file system, default logger)
  • Native binaries for win-x64, linux-x64, osx-x64, and osx-arm64 (Ultralight, UltralightCore, WebCore, AppCore)

It targets .NET 10.

Install

dotnet add package UltralightNet.Bundle

Quick start

using UltralightNet;
using UltralightNet.AppCore;

AppCoreMethods.SetPlatformFontLoader();
AppCoreMethods.ulEnablePlatformFileSystem("./assets");
AppCoreMethods.ulEnableDefaultLogger("./ultralight.log");

using var renderer = ULPlatform.CreateRenderer(new ULConfig());
using var view = renderer.CreateView(1280, 720, new ULViewConfig());

view.URL = "https://example.com";

while (!view.IsLoading)
{
    renderer.Update();
    renderer.Render();
}

The native binaries are deployed automatically into runtimes/<rid>/native/ when your project builds.

Supported runtimes

RID Libraries
win-x64 Ultralight.dll, UltralightCore.dll, WebCore.dll, AppCore.dll
linux-x64 libUltralight.so, libUltralightCore.so, libWebCore.so, libAppCore.so
osx-x64 libUltralight.dylib, libUltralightCore.dylib, libWebCore.dylib, libAppCore.dylib
osx-arm64 libUltralight.dylib, libUltralightCore.dylib, libWebCore.dylib, libAppCore.dylib

Build & pack locally

dotnet pack -c Release

Output: bin/Release/UltralightNet.Bundle.<version>.nupkg (and .snupkg).

License

Source code in this repository is licensed under MPL-2.0.

The bundled Ultralight native binaries are redistributed under the Ultralight Free License - review their terms before shipping a commercial product.

About

A single-package .NET binding for the Ultralight HTML rendering engine.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages