将基于 Prism 的 WPF 应用程序移植到 .NET Core
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39491094/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Porting a Prism-based WPF application to .NET Core
提问by Ranjith Venkatesh
We have a Prism-based WPF application with over 10 man years of development invested in it.
我们有一个基于 Prism 的 WPF 应用程序,其中投入了 10 多年的开发时间。
We are moving big chunks of it into web browser control hosted modules to make it platform independent in the future.
我们正在将它的大部分移动到 Web 浏览器控制托管模块中,以使其在未来独立于平台。
There seems to be no UI framework to take over XAML in .NET Core.
.NET Core 中似乎没有 UI 框架来接管 XAML。
Would it be possible to port it into .NET Core in the future?
将来是否可以将其移植到 .NET Core 中?
回答by wonea
It's looking like WPF or at the very least XAML will become part of .NET Standard 2.0 roughly Q1 2017 / Q2 2017
它看起来像 WPF 或至少 XAML 将成为 .NET Standard 2.0 的一部分,大约在 2017 年第一季度 / 2017 年第二季度
Immo Landwerth - Program manager on .NET at Microsoft https://twitter.com/MikeEEE76/status/776769805722521600
Immo Landwerth - Microsoft .NET 项目经理 https://twitter.com/MikeEEE76/status/776769805722521600
Bug - Port System.Xaml to .NET Core #5766 https://github.com/dotnet/corefx/issues/5766
错误 - 将 System.Xaml 移植到 .NET Core #5766 https://github.com/dotnet/corefx/issues/5766
.NET Core Roadmap https://blogs.msdn.microsoft.com/dotnet/2016/07/15/net-core-roadmap/
.NET 核心路线图 https://blogs.msdn.microsoft.com/dotnet/2016/07/15/net-core-roadmap/
回答by CodeConstruct
I am updating this answer as new .NET Core 3 and .NET Framework 4.8 are releasing with support of Windows Desktop Applications.
我正在更新此答案,因为新的 .NET Core 3 和 .NET Framework 4.8 正在发布并支持 Windows 桌面应用程序。
There is an update regarding .NET Core 3 and .NET Framework 4.8:
有关于 .NET Core 3 和 .NET Framework 4.8 的更新:
Update on .NET Core 3.0 and .NET Framework 4.8
.NET Core 3.0 和 .NET Framework 4.8 更新
Announcement of .NET 5 as ".NET Core vNext", the next release after .NET Core 3.0. In this announcement, Microsoft shows .NET 5 as a unifying platform for desktop, Web, cloud, mobile, gaming, IoT, and AI applications. It also shows explicit integration with all Visual Studio editions and with the command line interface (CLI). The goal of the new .NET version is to produce a single .NET runtime and framework, cross-platform, integrating the best features of .NET Core, .NET Framework, Xamarin, and Mono (the original cross-platform implementation of .NET). .NET 5 also features Java interoperability on all platforms and interoperability with Objective-C and Swift on multiple operating systems.

.NET 5 宣布为“.NET Core vNext”,是 .NET Core 3.0 之后的下一个版本。在此公告中,Microsoft 将 .NET 5 展示为桌面、Web、云、移动、游戏、IoT 和 AI 应用程序的统一平台。它还显示了与所有 Visual Studio 版本和命令行界面 (CLI) 的显式集成。新 .NET 版本的目标是生成单一的 .NET 运行时和框架、跨平台、集成 .NET Core、.NET Framework、Xamarin 和 Mono(.NET 的原始跨平台实现)的最佳功能)。.NET 5 还具有在所有平台上的 Java 互操作性以及在多个操作系统上与 Objective-C 和 Swift 的互操作性。

Image source: https://devblogs.microsoft.com/dotnet/introducing-net-5/
图片来源:https: //devblogs.microsoft.com/dotnet/introducing-net-5/
Still, it is clear that all future investments in .NET will be related with .NET Core, and that .NET 5 is the next step forward with .NET Core. All related development will continue to be open-source and community-oriented. The production release of .NET Core is scheduled to later this year, in September, and .NET 5 is expected on late 2020. The current .NET Core roadmap is available here.
不过,很明显,未来对 .NET 的所有投资都将与 .NET Core 相关,而 .NET 5 是 .NET Core 的下一步。所有相关的开发将继续开源和面向社区。.NET Core 的生产版本计划在今年晚些时候,即 9 月发布,.NET 5 预计在 2020 年末发布。当前的 .NET Core 路线图可在此处获得。
Image source: https://devblogs.microsoft.com/dotnet/introducing-net-5/
图片来源:https: //devblogs.microsoft.com/dotnet/introducing-net-5/

