NativeMessageBox can be consumed as a .NET package, a native runtime package, or a platform-specific mobile/browser artifact set.
dotnet add package NativeMessageBox
The NuGet package contains the managed API plus runtime folders for supported targets. If you package your application manually, verify the native runtime assets remain next to the app or in a location registered through RegisterNativeLibraryPath(String).
For native consumers:
include/native_message_box.h.nativemessagebox runtime binary for your platform.nmb_initialize once at startup if you want logging or allocator hooks.The build pipeline produces RID-specific runtime archives under artifacts/.
| Platform | Artifact | Notes |
|---|---|---|
| Android | NativeMessageBox.aar |
Includes the Java bridge plus native .so binaries |
| iOS | NativeMessageBox.xcframework |
Contains simulator and device slices |
| Browser | native-message-box.js and optional libnativemessagebox.wasm |
Used by the custom browser host |
Use RegisterNativeLibraryPath(String) when: