Can i run .NET 6.0 WPF app on Linux ?

Rasem Fadela 1 Reputation point
2022-08-01T13:34:20.82+00:00

i am developing a WPF application using the last .NET 6.0 version and VS22 which is declared as cross-platform
so can I run the same WPF app developed on .NET 6.0 and VS22 on Linux UBUNTO 20.4 ?
i saw only example of running Console app ?

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
767 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Michael Taylor 48,656 Reputation points
    2022-08-01T14:55:28.977+00:00

    WPF is not cross platform. It compiles under .NET Core/6 but is Windows only. Note that you can, theoretically, run it using Wine in Linux.

    The cross-platform UI for .NET Core/6 is MAUI.

    0 comments No comments

  2. cleric145-6909 11 Reputation points
    2022-08-01T20:53:03.587+00:00
    0 comments No comments

  3. MikeCodesDotNET 0 Reputation points
    2024-02-25T14:34:13.5266667+00:00

    WPF is now cross-platform!

    We (Avalonia) decided to do what many thought impossible. We forked WPF and replaced the low levels with Avalonia and named it Avalonia XPF. It's API-compatible and binary-compatible, meaning all your favourite 3rd party controls continue to work! Right now, we support running on Windows, macOS and Linux. We expect to add iOS, Android and Browser (WASM) support later this year. If you want to try it, you can sign up for a trial on our website.

    0 comments No comments