Native host
Publish the C# host into native/<rid>/:
pwsh tools/build-host.ps1
# Windows PowerShell 5: powershell -File tools/build-host.ps1
# optional: -Runtime linux-x64
On Windows the loader looks for AvaloniaD.HostNE.dll next to the executable,
then native/win-x64/, then native/, then the process search path.
The shim must stay next to AvaloniaD.Host.dll, AvaloniaD.Host.runtimeconfig.json,
and the Avalonia / ShadUI assemblies from dotnet publish. Copy the whole
publish folder, not the NE DLL alone.
Requirements:
-
.NET 9 runtime (framework-dependent publish)
-
DNNE needs a native C toolchain at publish time