{"id":28998,"date":"2020-07-21T09:19:39","date_gmt":"2020-07-21T16:19:39","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=28998"},"modified":"2020-07-21T10:13:30","modified_gmt":"2020-07-21T17:13:30","slug":"announcing-net-5-0-preview-7","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-5-0-preview-7\/","title":{"rendered":"Announcing .NET 5.0 Preview 7"},"content":{"rendered":"<p>Today, we&#8217;re releasing .NET 5.0 Preview 7. It&#8217;s the second to last of the preview releases (before moving to RC). Most features should be very close to done at this point. Single file and ARM64 intrinsics are two feature areas that are taking the longest time to complete, but are on track for Preview 8. See the <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-5-preview-4-and-our-journey-to-one-net\/\" rel=\"nofollow\">.NET 5.0 Preview 4 post<\/a> for a broader view of the release.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/asp-net-core-updates-in-net-5-preview-7\/\">ASP.NET Core<\/a> and <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-entity-framework-core-ef-core-5-0-preview-7\/\">EF Core<\/a> are also being released today.<\/p>\n<p>You can <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/5.0\" rel=\"nofollow\">download .NET 5.0 Preview 7<\/a>, for Windows, macOS, and Linux:<\/p>\n<ul>\n<li><a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/5.0\" rel=\"nofollow\">Installers and binaries<\/a><\/li>\n<li><a href=\"https:\/\/hub.docker.com\/_\/microsoft-dotnet\" rel=\"nofollow\">Container images<\/a><\/li>\n<li><a href=\"https:\/\/snapcraft.io\/dotnet-sdk\" rel=\"nofollow\">Snap installer<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/master\/release-notes\/5.0\/preview\/5.0.0-preview.7.md\">Release notes<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/master\/release-notes\/5.0\/5.0-known-issues.md\">Known issues<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/issues\/4971\">GitHub issue tracker<\/a><\/li>\n<\/ul>\n<p>You need to use <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\" rel=\"nofollow\">Visual Studio 2019 16.7<\/a> to use .NET 5.0. .NET 5.0 is now supported with <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/mac\" rel=\"nofollow\">Visual Studio for Mac<\/a>. Install the latest version of the <a href=\"https:\/\/code.visualstudio.com\/Docs\/languages\/csharp\" rel=\"nofollow\">C# extension<\/a> to use .NET 5.0 with <a href=\"https:\/\/visualstudio.microsoft.com\/\" rel=\"nofollow\">Visual Studio Code<\/a>.<\/p>\n<h2><a id=\"user-content-performance\" class=\"anchor\" href=\"#performance\" aria-hidden=\"true\"><\/a>Performance<\/h2>\n<p>Stephen Toub recently posted his <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/performance-improvements-in-net-5\/\" rel=\"nofollow\">Performance Improvements in .NET 5<\/a> post, the latest in his series. He covers ~250 performance-oriented pull requests, which reveal improvements that will even surprise people who follow .NET Core performance closely.<\/p>\n<h2><a id=\"user-content-systemtextjson\" class=\"anchor\" href=\"#systemtextjson\" aria-hidden=\"true\"><\/a>System.Text.Json<\/h2>\n<p>We&#8217;ve been adding usability feature to the new JSON API. The following features are new in Preview 7 (more coming in Preview 8, too).<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/36322\/\">[Breaking change] Ability to ignore default values for value-type properties when serializing<\/a> &#8212; can be used to reduce serialization and wire costs.<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/36829\">Ability to handle circular references when serializing<\/a> &#8212; API shape is now expected to be final.<\/li>\n<\/ul>\n<h2><a id=\"user-content-garbage-collection-gc\" class=\"anchor\" href=\"#garbage-collection-gc\" aria-hidden=\"true\"><\/a>Garbage Collection (GC)<\/h2>\n<p>The GC now exposes detailed information of the most recent collection, via the <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/6a8fd0bec119d4cb36ad40a5d2242ed7f781dd60\/src\/coreclr\/src\/System.Private.CoreLib\/src\/System\/GC.cs#L59-L75\">GC.GetGCMemoryInfo<\/a> method, which returns a <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/6072e4d3a7a2a1493f514cdf4be75a3d56580e84\/src\/libraries\/System.Private.CoreLib\/src\/System\/GCMemoryInfo.cs#L97\">GCMemoryInfo<\/a> struct. GCMemoryInfo provides information about machine memory, heap memory and the most recent collection, or most recent collection of the kind of GC you specify &#8211; ephemeral, full blocking or background GC.<\/p>\n<p>The most likely use cases for using this new API are for logging\/monitoring or to indicate to a loader balancer that a machine should be taken out of rotation to request a full GC. It could also be used to avoid container hard-limits by reducing the size of caches.<\/p>\n<p>Another, small but impactful change, was made to <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37894\">defer the expensive <code>reset memory<\/code> operation to low-memory situations<\/a>. We expect these\nchanges in policy to lower the GC latency (and GC CPU usage in general).<\/p>\n<h2><a id=\"user-content-ryujit\" class=\"anchor\" href=\"#ryujit\" aria-hidden=\"true\"><\/a>RyuJIT<\/h2>\n<p>RyuJIT is the assembly code generator for .NET, target both Intel and ARM chips. Most of the investment in RyuJIT is focused on performance.<\/p>\n<ul>\n<li>General Improvements\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/36263\">Enable eliding some bounds checks<\/a> &#8212; Credit <a href=\"https:\/\/github.com\/nathan-moore\">@nathan-moore<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37845\">Optimize Enum.CompareTo after being rewritten in C#<\/a> &#8212; performance is now at parity with previous C++ implementation.<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/36862\">Improvement in register allocation for structs<\/a> &#8212; Enregister multireg lclVars<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37786\">Improvements for removal of redundant zero inits<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37038\">Tail duplication improvement<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37967\">Stack based structs copy CQ fix<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37280\">Clean up a dead field assignment after removing redundant zero initializations<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/33308\">ARM64 hardware intrinsics &amp; API optimization<\/a>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/36916\">Implement majority of \u201cby element\u201d intrinsics<\/a><\/li>\n<li>Implement fcvtxn, fcvtxn2, sqabs, sqneg, suqadd, usqadd intrinsics &#8212; <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/38010\">#38010<\/a>, <a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/38110\">#38110<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37624\">Optimize SpanHelpers.IndexOf(byte), SpanHelpers.IndexOf(char)<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37934\">Optimize SpanHelpers.IndexOfAny(byte)<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37139\">Optimize WithLower, WithUpper, Create, AsInt64, AsUInt64, AsDouble<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/pull\/37338\">Optimize AsVector, AsVector128, GetUpper, As and WithElement<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2><a id=\"user-content-closing\" class=\"anchor\" href=\"#closing\" aria-hidden=\"true\"><\/a>Closing<\/h2>\n<p>Please tell us about your experience using Preview 7. It&#8217;s not too late to share your feedback. We are getting close to the end of the release, but are actually more focused on quality now since we are largely done with feature development.<\/p>\n<p>After Preview 8, we plan to release two RCs before the final release. The RCs will have &#8220;go live&#8221; licenses, meaning they&#8217;ll be supported in production. On that note, we&#8217;ve been running the <a href=\"https:\/\/dot.net\/\" rel=\"nofollow\">dot.net<\/a> site on .NET 5.0 since Preview 1 (50% on 5.0; 50% on 3.1) and it has worked great.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we&#8217;re releasing .NET 5.0 Preview 7. It&#8217;s the second to last of the preview releases (before moving to RC). Most features should be very close to done at this point. Single file and ARM64 intrinsics are two feature areas that are taking the longest time to complete, but are on track for Preview 8. [&hellip;]<\/p>\n","protected":false},"author":336,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,196],"tags":[],"class_list":["post-28998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-dotnet-core"],"acf":[],"blog_post_summary":"<p>Today, we&#8217;re releasing .NET 5.0 Preview 7. It&#8217;s the second to last of the preview releases (before moving to RC). Most features should be very close to done at this point. Single file and ARM64 intrinsics are two feature areas that are taking the longest time to complete, but are on track for Preview 8. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/28998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/336"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=28998"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/28998\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=28998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=28998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=28998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}