Windows Forms和WPF在Net Core 3.0框架下并不会支持跨平台

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 解决第三方库问题

.Net Core 3.0

参考

  1. Make WPF cross-platform (MacOS and Linux support)

  2. WPF Contributing Guide

     We also do not intend to accept contributions that provide cross-platform implementations for Windows Forms or WPF.
    
  3. Winforms Contributing Guide

    We also do not intend to accept contributions that provide cross-platform implementations for Windows Forms or WPF.
    
posted @ 2019-10-15 16:59  大志若愚  阅读(3564)  评论(0编辑  收藏  举报