logoalt Hacker News

Dwedittoday at 5:47 AM3 repliesview on HN

WinForms is a layer built on top of raw Win32. So it's not portable.

Even though Wine exists, Win32 calls can only be made from Win32 programs, not native Linux programs. So a WinForms app using the latest dotnet would need to run the Windows version of dotnet under Wine, and not use the Linux version of dotnet.


Replies

pjc50today at 7:42 AM

True, but: Microsoft haven't made a better UI framework that's portable to Windows yet. Everything after WPF has near zero adoption, including (critically important!) by Microsoft itself.

anthktoday at 9:05 AM

Mono used to have libwine embedded. You know, libwine exists as a library running and compiling Win32 natively under Unix. Instead of PE binaries you would run ELF Linux ones, but with nearly the same outcome.

DeathArrowtoday at 5:59 AM

>WinForms is a layer built on top of raw Win32. So it's not portable.

Neither are SwiftUI and AppKity.