Introducing .NET 5.0 Preview 7

We release .NET 5.0 Preview 7. This is the pre-pre-last release from the preliminary ones (before moving to RC). At this stage, most of the functions should be very close to final. Built-in functions (intrinsics) of one file and ARM64 are two functional areas that we need the most time to integrate, but they will be ready for the next Preview 8. Check out the .NET 5.0 Preview 4 post for a better understanding of the release as a whole.



The new ASP.NET Core and EF Core are also ready.



You can download .NET 5.0 Preview 7 for Windows, macOS and Linux:





You need to use Visual Studio 2019 16.7 to work with .NET 5.0. .NET 5.0 is now supported by Visual Studio for Mac . Install the latest C # extension to use .NET 5.0 with Visual Studio Code .



Read more about Preview 7 under the cut.







Performance



Stephen Taub recently published his post "Performance Improvements in .NET 5", the latest in a series. It covers ~ 250 performance-oriented pull requests, which contain improvements that might even surprise people closely watching .NET Core performance.



System.Text.Json



We've added a usability feature to the new JSON API. The following features are new in Preview 7 (there will be more in Preview 8).



  • [ ] β€” .
  • β€” , API .


(GC)



The GC now provides details of the most recent collection through the GC.GetGCMemoryInfo method , which returns a GCMemoryInfo structure . GCMemoryInfo provides information about machine memory, heap memory, and the most recent collection, or the most recent collection of the type of GC you specify - ephemeral, full blocking, or background GC.



The most likely use cases for this new API are for logging / monitoring, or to tell the bootloader to load balancer that a machine should be taken out of rotation to request a full GC. This can also be used to avoid hard container constraints by reducing the size of caches.



RyuJIT



RyuJIT is an assembly code generator for .NET designed for both Intel and ARM chips. Much of RyuJIT's work is focused on performance.





Conclusion



Please tell us about your experience with Preview 7. It's not too late to share your feedback. We are getting closer to the release, and now we are paying more attention to quality, as we have basically finished developing new features.



All Articles