Run stock WPF (System.Windows.*) applications natively on Linux — a managed
replacement for the MIL/DUCE rendering channel, an SDL3 PresentationSource, and a
Vulkan raster backend. No Wine, no WpfGfx, no Windows.
Warning
Experimental and not production ready. This project is completely an AI-slop codebase. Please do not rely on it being correct nor secure for a production grade deployment.
This repository does not fork dotnet/wpf and does not vendor WpfGfx
/ milcore. Consumers write against stock PresentationFramework /
PresentationCore / WindowsBase assemblies. This project supplies:
- A managed replacement for the MIL/DUCE native ABI (
wpfgfx_cor3). - An SDL3
PresentationSource+CompositionTarget(Nova.SdlSource). - A raster backend on Vulkan (
Nova.Vulkan) with SDL3 WSI. The software path is the same binary pinned to Mesa lavapipe (VK_DRIVER_FILES). - Tiny, upstream-shaped patches only where a
DllImportResolveror a public subclass cannot intercept (seepatches/).
- Not Avalonia XPF (commercial WPF fork).
- Not Wine / wine-mono (PE
wpfgfx_cor3.dllinside a Win32 process). - Not a new XAML dialect. Public types stay
System.Windows.*.
app (net10.0 / net11.0, not -windows)
→ stock PresentationFramework / PresentationCore / WindowsBase
→ DUCE.Channel P/Invokes ──► this repo: managed MIL slave
→ HwndSource / user32 ──► this repo: SdlPresentationSource
→ DWriteLoader / dwrite.dll ──► this repo: HarfBuzz + FreeType
→ WIC / windowscodecs ──► this repo: ImageSharp
→ Nova.Vulkan device (SDL3 WSI)
→ Vulkan ICD: GPU | lavapipe (VK_DRIVER_FILES)
Do not compile wpfgfx.vcxproj — the native tree is D3D9 + HWND + DWrite + WIC +
GDI present; replacing it is a Wine rewrite.
Pull requests welcome. The three rules that keep the tree sound:
patches/verify-series.shmust pass (MATCH=N DIFFER=0) — any edit underthird_party/dotnet-wpfmust be mirrored into the patch series, and never made directly against the submodule tree alone (seepatches/README.md).- The 19 suites + harness must stay green; run them sequentially with
SDL_VIDEODRIVER=offscreen(the bootstrap--tests --harnessdoes this). src/Nova.Classification/Resources/*.jsonare generated, committed, embedded tables — the only Unicode data the runtime ships. Regenerate them withtools/Nova.Classification.Generator(needs ICU 78); itscheckswitch fails when the committed files drift, andNova.Classification.Testsfails when they stop matching the readers.
This is an experiment-first codebase: verification claims must be reproducible, not asserted.
- This project: MIT (LICENSE).
- The consumed upstream
dotnet/wpfassemblies are MIT (© .NET Foundation and Contributors);LICENSE.TXTships with every package. - Third-party attributions and companion licenses (LibTessDotNet under SGI Free Software License B, the derived icon font under Apache-2.0/MIT, ImageSharp under the Six Labors Split License — Apache-2.0 for OSS consumers): see NOTICE.