You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run WPF in macOS.
I want to run WPF in macOS, but run error is "It was not possible to find any compatible framework version The specified framework 'Microsoft.WindowsDesktop.App', version '3.0.0-alpha-27128-4' was not found", I can't find this runtimes in macOS version.
Although .NET Core 3 supports WPF, WinForms and UWP XAML they're only for Windows. You can read about this topic in .NET Blog.
I don't really know if there are any hacks that you can do to get WPF running on MacOS, but I suppose this is not the place to talk about it.
Thanks for your prompt reply!
I want to know that dotnet core is cross platform. WPF can already run on Windows, Now it is added to core3.0, Is it for cross platform in the future? Is it possible to run on macOS in the future?
@William201807 the blog post and WPF repo both contain information, that WPF is Windows-only. Currently there are no plans to make it cross-platform. See dotnet/wpf#48
Reacted by Jéf Bueno, Christopher Stock and Nikhil Vartak
I appreciate that this isn't what dotnet/core/issues is for, but this page now ranks high
Reacted by Amir Mahdi Nassiri, Guo Siyi, 0x1F40E, Danijel-James Wynyard, alastairpatrick, Suraj Shenoy, Jake Burgy, York Xiang, roshith.k, AhmadReza Saghari and 1 more
Yes, good point. I guess MAUI is due to be our way forwards but really, Unity has been working for years and let's face it, most games have better UIs than most LoB apps :-)
Activity
[-]WPF[/-][+]How can run WPF in macOS?[/+]jfbueno commentedon Dec 13, 2018
Basically, you can't.
Although .NET Core 3 supports WPF, WinForms and UWP XAML they're only for Windows. You can read about this topic in .NET Blog.
I don't really know if there are any hacks that you can do to get WPF running on MacOS, but I suppose this is not the place to talk about it.
William201807 commentedon Dec 13, 2018
Thanks for your prompt reply!
I want to know that dotnet core is cross platform. WPF can already run on Windows, Now it is added to core3.0, Is it for cross platform in the future? Is it possible to run on macOS in the future?
karelz commentedon Dec 13, 2018
@William201807 the blog post and WPF repo both contain information, that WPF is Windows-only. Currently there are no plans to make it cross-platform. See dotnet/wpf#48
chrisfcarroll commentedon Sep 11, 2019
For those of us coming to this page from a websearch for "WPF on MacOs" I guess what we'd like is a pointer to good options for https://www.bing.com/search?q=netcore+cross+platform+gui
I appreciate that this isn't what dotnet/core/issues is for, but this page now ranks high
Bron-Code commentedon Oct 15, 2022
I had the same problem with WPF and found a solution of sorts. I ended up using Unity to create a C# UI interface that works on MacOS, Windows, and more. Here is a basic tutorial I made on how to do it: https://medium.com/@A51/how-to-easily-develop-a-c-ui-app-that-works-on-mac-and-windows-8eaf32ea0ed6. I am happy to help with any questions I can.
chrisfcarroll commentedon Oct 15, 2022
Yes, good point. I guess MAUI is due to be our way forwards but really, Unity has been working for years and let's face it, most games have better UIs than most LoB apps :-)