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 APIUltralightNet.AppCore- managed bindings for AppCore (windowing, font loader, file system, default logger)- Native binaries for
win-x64,linux-x64,osx-x64, andosx-arm64(Ultralight, UltralightCore, WebCore, AppCore)
It targets .NET 10.
dotnet add package UltralightNet.Bundleusing 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.
| 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 |
dotnet pack -c ReleaseOutput: bin/Release/UltralightNet.Bundle.<version>.nupkg (and .snupkg).
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.
