The .NET 5 Preview 1 and follow the depth of interpretation

 These days Microsoft .NET team released .NET 5 Preview 1, to the party. Very excited, because .NET Framework .NET Core and finally achieve a unified, while also looking forward, looking forward to .NET 5 What are some good new features bring us.

 Let us put aside time back in 2019 ...

 First, spoilers ahead .NET 2019 5

   Last year, 2019 Richard spoilers ahead 5 the .NET  https://devblogs.microsoft.com/dotnet/introducing-net-5/ . This article, let's review the main points and draw:

   1. After the NET Core 3.x will be unified upgrade to .NET 5, a unified platform A unified platform

       .NET 5 = .NET Core vNext

       Skip .NET Core 4, because .NET Core 4.x and .NET Framework 4. *. * Would create confusion on the version, simply to direct .NET 5,

      .NET 5 names directly remove the .NET Core, in order to unify naming .NET, the goal is only one .NET, 

      A unified runtime and framework, the framework can run anywhere, with a unified development experience and operational behavior

      Take full advantage of .NET Core, .NET Framework, Mono, Xamarin to extend .NET features

      A single unified code base, Microsoft .NET development team and community to jointly safeguard, development

  2. .NET 5 is positioned with Windows, Linux, macOS, iOS, Android, tvOS, watchOS and WebAssembly so the whole platform, the whole scenario development

      

  3. .NET 5's new features

      Java interoperability will be available on all platforms.

      In support of multiple operating systems on Objective-C and Swift interoperability.

      CoreFX will be extended to support static compilation of .NET (ahead-of-time - AOT), a smaller footprint and support for more operating systems.

  4. higher throughput and productivity

  The quick start, a smaller volume of memory used and

Second, 2020 March 16 .NET 5 Preview 1 released

  A few days ago, on March 16, Scott Hunter released an exciting news in a blog, .NET 5 Preview 1 first preview release.

  https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-1/

  博文中,Scott Hunter说:“.NET Core 3 has become the fastest adopted version of .NET ever and we’ve gained another million more users in just the last year.”,

             Translation: ". NET Core 3 version of .NET to become the fastest ever adopted, but only in the last year, we also received over 100 million users ."

  This data strongly illustrates the powerful attraction of .NET Core. Meanwhile .NET Core 3.1 is a LTS release, including our special calls, including many companies that have been upgraded to this version of the .NET Core 3.1.

  Wrote this, combined with spoilers ahead to 2019, we expect to .NET 5 is very high, but in this case, the new release of .NET 5 Preview 1, we have to calm down, why?

  •    This is the first preview version
  •    GA speaking generally available version released in November 2020
  •    Preview new features for the moment limited 1

  Next, we examine in detail the new features of .NET 5 Preview 1:

  1. Install deployment

   2. Upgrading existing projects

<TargetFramework>netcoreapp5.0</TargetFramework>

   If ASP.NET Core Project

  • All Microsoft.AspNetCore. * Package references updated 5.0.0-preview.1.20124.5.
  • All Microsoft.Extensions. * Package is updated to reference 5.0.0-preview.1.20120.4.

   3. ASP.NET Core Update 5.0

    Looks like only a few fixes and improvements function points and a little Bug ......

    https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-5-preview-1/

ASP.NET Core in .NET 5 Preview 1 doesn’t include any major new features just yet, but it does include plenty of minor bug fixes. 

   

   4. Regular Expressions performance

      Official: We tried many expressions, these improvements can often make the throughput increase 3-6 times , and in some cases can even improve more.

   5. RyuJIT code quality improvement

     Official: Each version of the JIT code generated by a series of performance improvements. We call these types of improvements called "CQ" or code quality.

   6. The assembly is loaded diagnosis added to the event pipeline

     Will add the assembly to load the information into the event pipeline. Diagnostic Analysis convenient loading assembly (for use with .NET Framework part of the Fusion Log Viewer) . You can use dotnet-trace to gather this information through the following command:

dotnet-trace collect --providers Microsoft-Windows-DotNETRuntime:4:4 --process-id [process ID]

   

   7. The event pipeline Profiler API programming

   Pipeline is a new event in the subsystem and API .NET Core 2.2 added, can perform other diagnostic and performance investigation on any operating system. In .NET 5.0, the event pipeline has been extended, so that the event can be written profiler pipeline event.

   This view is similar to the original .NET Framework to write an event function of the event. For example, you can use the program startup, shutdown, information is recorded when the Crash, easy to program problem tracking and analysis.

   8. GItHub warehouse consolidation

  In reducing the number of .NET. 5 GitHub repository for building and packaging of .NET. Code merged, united!

   dotnet / Runtime (Yes dotnet / corefx, dotnet / coreclr and dotnet / Core-Setup)
   dotnet / aspnetcore (a plurality of repositories aspnet tissue)
   dotnet / SDK (formerly dotnet / sdk, dotnet / cli)

   9. However, it does contain some high-level goal of .NET 5 (not to proceed in detail, look forward to the follow-up preview version)

   Through the above sort and organize, .NET 5 Prevew 1, we do not expect too much, after all, is the first preview. Can be understood as combined existing code, repair some Bug, .NET 5 is called the baseline.

   We can continue to wait and look forward to the follow-up and update the preview version of the GA version of release.

   Above and follow the .NET depth interpretation of 5 Preview 1. To others.

 

 

Zhou Guoqing

2020/3/23

Guess you like

Origin www.cnblogs.com/tianqing/p/12555235.html