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.
    


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM