Windows Forms和WPF在Net Core 3.0框架下並不會支持跨平台
微軟將WinForms和WPF帶到.NET Core 3.0這一事實,相信大家都有所了解,這是否意味着它在Linux和Mac上運行?。
不!由於WinForms和WPF在后台使用Windows技術,因此無法在Linux或Mac上運行。它真的依賴於Windows。在.NET Core上運行它的意義在於性能,並且獨立於任何框架。
相關知識點:
1.跨平台的WPF/UWP UI 框架:Avalonia 可以使用Avalonia開開發跨平台的WPF/UWP
2.可以使用 Windows Compatibility Pack for .NET Core 解決第三方庫問題
參考
-
We also do not intend to accept contributions that provide cross-platform implementations for Windows Forms or WPF.
-
We also do not intend to accept contributions that provide cross-platform implementations for Windows Forms or WPF.