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

Windows Forms和WPF在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.
    

相关文章:

  • 2022-02-21
  • 2021-10-18
  • 2021-09-23
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
  • 2021-05-03
  • 2019-10-11
猜你喜欢
  • 2022-12-23
  • 2021-06-05
  • 2021-08-13
  • 2020-07-12
  • 2021-12-06
  • 2022-12-23
  • 2018-12-29
相关资源
相似解决方案