本文内容
- .NET 5.0 doesn't replace .NET Framework
- .NET 5.0 doesn't replace .NET Standard
- C# updates
- F# updates
- Visual Basic updates
- System.Text.Json new features
- See also
- .NET 5.0 不會取代 .NET Framework
- .NET 5.0 不會取代 .NET Standard
- C # 更新
- F # 更新
- Visual Basic 更新
- 新功能的 System.Text.Js
- 另請參閱
.NET 5.0 is the next major release of .NET Core following 3.1. We named this new release .NET 5.0 instead of .NET Core 4.0 for two reasons:
.NET 5.0是下一个.NET Core的主要版本,之前是3.1。我们将这个新版本的.NET 5.0(而不是.NET Core 4.0)命名为以下两个原因:
- We skipped version numbers 4.x to avoid confusion with .NET Framework 4.x.
- We dropped "Core" from the name to emphasize that this is the main implementation of .NET going forward. .NET 5.0 supports more types of apps and more platforms than .NET Core or .NET Framework.
- 我们略过了版本号码4.x,以避免与.NET Framework 4.x混淆。
- 我们从名称中舍弃了「核心」,以强调这是未来的.NET主要实作为。.NET 5.0支持比.NET Core或.NET Framework更多类型的应用程序和平台。
ASP.NET Core 5.0 is based on .NET 5.0 but retains the name "Core" to avoid confusing it with ASP.NET MVC 5. Likewise, Entity Framework Core 5.0 retains the name "Core" to avoid confusing it with Entity Framework 5 and 6.
ASP.NET Core 5.0是以.net 5.0为基础,但会保留“Core”的名称,以避免与ASP.NET MVC 5混淆。同样地,Entity Framework Core 5.0会保留“Core”的名称,以避免与Entity Framework 5和6混淆。
.NET 5.0 includes the following improvements and new features compared to .NET Core 3.1:
相较于.NET Core 3.1,.NET 5.0包含下列改进功能和新功能:
- C# updates
- F# updates
- Visual Basic updates
- System.Text.Json new features
- Single file apps
- App trimming
- Windows ARM64 and ARM64 intrinsics
- Tooling support for dump debugging
- The runtime libraries are 80% annotated for nullable reference types
- Performance improvements:
- Garbage Collection (GC)
- System.Text.Json
- System.Text.RegularExpressions
- Async ValueTask pooling
- Container size optimizations
- Many more areas
- C # 更新
- F # 更新
- Visual Basic 更新
- 新功能的System.Text.Js
- 单文件应用
- 应用修整(DLL体积更小)
- WindowsARM64 和 ARM64
- 转储调试的工具支持
- 对于可空引用类型,运行时库有80%的注释
- 持续的性能改进:
- 垃圾收集 (GC)
- System.Text.Json
- System.Text.RegularExpressions
- 非同步 ValueTask 共用
- 容器大小优化
- 更多
.NET 5.0 doesn't replace .NET Framework
(.NET 5.0 不会取代 .NET Framework)
.NET 5.0 is the main implementation of .NET going forward and .NET Framework 4.x is still supported.
.net 5.0 是未来的 .net 的主要方向,而且仍支持 .NET Framework 4.x。
There are no plans to port the following technologies from .NET Framework to .NET 5.0, but there are alternatives in .NET 5.0:
没有将下列技术从.NET Framework移植到.net 5.0的计划,但.net 5.0中有替代方案:
Technology(技术) | Recommended alternative(建议替代方案) |
Web Forms | ASP.NET Core Blazor or Razor Pages |
Windows Workflow (WF) | Open-source CoreWF or Elsa-Workflows |
Windows Communication Foundation(WCF)
The original implementation of Windows Communication Foundation (WCF) was only supported on Windows. However, there is a client port available from the .NET Foundation. It is entirely open source, cross platform, and supported by Microsoft. The core NuGet packages are listed below:
Windows Communication Foundation(WCF)的实施支持Windows。不过,.NET Foundation有提供客户端端口。它是完全开放的原始码、跨平台,并受到Microsoft的支持。核心NuGet套件如下所示:
- System.ServiceModel.Duplex
- System.servicemodel. 同盟
- System.ServiceModel.Http
- System.ServiceModel.NetTcp
- System.ServiceModel.Primitives
- System.servicemodel. 安全性
The community maintains the server components that complement the aforementioned client libraries. The GitHub repository can be found at CoreWCF. The server components are not officially supported by Microsoft. For an alternative to WCF, consider gRPC.
此社区会维护服务器元件,以补充上述的客户端程序库。您可以在CoreWCF找到GitHub存放库。Microsoft未正式支持服务器元件。如需WCF的替代方案,请考虑gRPC。
标签:5.0,Core,What,Text,System,Framework,new,NET From: https://blog.51cto.com/JohnsonJu/6089162