{"id":53218,"date":"2024-08-15T13:25:00","date_gmt":"2024-08-15T20:25:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=53218"},"modified":"2024-12-13T14:18:07","modified_gmt":"2024-12-13T22:18:07","slug":"dotnet-9-preview-7","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-9-preview-7\/","title":{"rendered":".NET 9 Preview 7 is now available!"},"content":{"rendered":"<p>It&#8217;s a great time to check out the latest .NET 9 Preview! We just shipped our <strong>seventh<\/strong> preview release, adding to some major enhancements across the .NET Runtime, SDK, libraries, C#, ASP.NET Core, Blazor, and .NET MAUI. Check out the full release notes linked below and get started today.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/9.0\" target=\"_blank\">Download .NET 9 Preview 7<\/a><\/div><\/p>\n<p>This release contains the following improvements.<\/p>\n<h2><strong>\ud83d\udcdaLibraries<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#removal-of-binaryformatter-is-complete\">Removal of <code>BinaryFormatter<\/code> is complete<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#enumerate-over-readonlyspancharsplit-segments\">Enumerate over <code>ReadOnlySpan&lt;char&gt;.Split()<\/code> segments<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#debugassert-now-reports-assert-condition-by-default\"><code>Debug.Assert<\/code> now reports assert condition, by default.<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#compression-apis-now-use-zlib-ng\">Compression APIs now use <code>zlib-ng<\/code><\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#guidcreateversion7-enables-creating-guids-with-a-natural-sort-order\"><code>Guid.CreateVersion7<\/code> enables creating GUIDs with a natural sort order<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#interlockedcompareexchange-for-more-types\"><code>Interlocked.CompareExchange<\/code> for more types<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#aes-gcm-and-chachapoly1305-algorithms-enabled-for-iostvosmaccatalyst\">AES-GCM and ChaChaPoly1305 algorithms enabled for iOS\/tvOS\/MacCatalyst<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#changes-to-x509-certificate-loading\">Changes to X.509 Certificate Loading<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#support-for-xps-documents-from-xps-virtual-printer\">Support for XPS documents from XPS virtual printer<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md#marking-tensort-as-experimental\">Marking <code>Tensor&lt;T&gt;<\/code> as <code>Experimental<\/code><\/a><\/li>\n<li>Full <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/libraries.md\">release notes<\/a><\/li>\n<\/ul>\n<h2><strong>\u23f1\ufe0fRuntime<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/runtime.md#arm64-sve-support\">ARM64 SVE Support<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/runtime.md#post-indexed-addressing-on-arm64\">Post-Indexed Addressing on ARM64<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/runtime.md#strength-reduction-in-loops\">Strength Reduction in Loops<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/runtime.md#object-stack-allocation-for-boxes\">Object Stack Allocation for Boxes<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/runtime.md#gc-dynamic-adaptation-to-application-sizes\">GC Dynamic Adaptation To Application Sizes<\/a><\/li>\n<li>Full <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/runtime.md\">release notes<\/a><\/li>\n<\/ul>\n<h2><strong>C#<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/csharp.md#prioritize-better-overloads-with-overloadresolutionpriority-attribute\">Prioritize better overloads with <code>OverloadResolutionPriority<\/code> attribute<\/a><\/li>\n<li>Full <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/csharp.md\">release notes<\/a><\/li>\n<\/ul>\n<h2><strong>\ud83d\udee0\ufe0f SDK<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/sdk.md#container-publishing-improvements-for-insecure-registries\">Container publishing improvements for insecure registries<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/sdk.md#more-consistent-environment-variables-for-container-publishing\">More consistent environment variables for container publishing<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/sdk.md#introduction-of-workload-sets-for-more-control-over-workloads\">Introduction of Workload Sets for more control over workloads<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/sdk.md#mitigating-analyzer-mismatch-issues-aka-torn-sdk\">Mitigating analyzer mismatch issues aka &#8216;torn SDK&#8217;<\/a><\/li>\n<li>Full <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/sdk.md\">release notes<\/a><\/li>\n<\/ul>\n<h2><strong>\ud83c\udf10 ASP.NET Core<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#signalr-supports-trimming-and-native-aot\">SignalR supports trimming and Native AOT<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#microsoftaspnetcoreopenapi-supports-trimming-and-native-aot\">Microsoft.AspNetCore.OpenApi supports trimming and Native AOT<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#improvements-to-transformer-registration-apis-in-microsoftaspnetcoreopenapi\">Improvements to transformer registration APIs in Microsoft.AspNetCore.OpenApi<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#call-producesproblem-and-producesvalidationproblem-on-route-groups\">Call <code>ProducesProblem<\/code> and <code>ProducesValidationProblem<\/code> on route groups<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#construct-problem-and-validationproblem-result-types-with-ienumerablekeyvaluepairstring-object-values\">Construct <code>Problem<\/code> and <code>ValidationProblem<\/code> result types with <code>IEnumerable&lt;KeyValuePair&lt;string, object?&gt;&gt;<\/code> values<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#openidconnecthandler-support-for-pushed-authorization-requests-par\"><code>OpenIdConnectHandler<\/code> support for Pushed Authorization Requests (PAR)<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#data-protection-support-for-deleting-keys\">Data Protection support for deleting keys<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#customize-kestrel-named-pipe-endpoints\">Customize Kestrel named pipe endpoints<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#improved-kestrel-connection-metrics\">Improved Kestrel connection metrics<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#opt-out-of-http-metrics-on-certain-endpoints-and-requests\">Opt-out of HTTP metrics on certain endpoints and requests<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md#exceptionhandlermiddleware-option-to-choose-the-status-code-based-on-the-exception\"><code>ExceptionHandlerMiddleware<\/code> option to choose the status code based on the exception<\/a><\/li>\n<li>Full <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/aspnetcore.md\">release notes<\/a><\/li>\n<\/ul>\n<h2><strong>\ud83d\udcf1 .NET MAUI<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#introduction-of-hybridwebview\">Introduction of <code>HybridWebview<\/code><\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#new-titlebar-control-and-windowtitlebar-for-windows\">New <code>TitleBar<\/code> Control and <code>Window.TitleBar<\/code> for Windows<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#collectionview--carouselview-improvements-with-a-new-opt-in-handler-for-ios-and-mac-catalyst\"><code>CollectionView<\/code> &amp; <code>CarouselView<\/code> improvements with a new opt-in handler for iOS and Mac Catalyst<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#activatewindow-added-to-bring-a-window-to-foreground\">Ability to bring a <code>Window<\/code> to the foregrond with <code>ActivateWindow<\/code><\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#backbuttonbehavior-oneway-binding-mode\"><code>BackButtonBehavior<\/code> <code>OneWay<\/code> binding mode<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#blazorwebview-backward-compatibility-host-address\"><code>BlazorWebView<\/code> backward compatibility host address<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#native-embedding-improvements\">Native Embedding improvements<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#mainpage-is-obsolete\"><code>MainPage<\/code> is Obsolete<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#new-handler-disconnect-policy\">New Handler Disconnect Policy<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#new-processterminated-event-on-webview-control\">New <code>ProcessTerminated<\/code> event on <code>WebView<\/code> Control<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#new-lifecycle-methods-for-remote-notifications-on-ios--mac-catalyst\">New lifecycle methods for remote notifications on iOS &amp; Mac Catalyst<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md#xcode-sync-for-cli-and-visual-studio-code\">Xcode Sync for CLI and Visual Studio Code<\/a><\/li>\n<li>Full <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/preview\/preview7\/dotnetmaui.md\">release notes<\/a><\/li>\n<\/ul>\n<h2>\ud83d\ude80 Get started<\/h2>\n<p>To get started with .NET 9, <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet\/9.0\">install the .NET 9 SDK<\/a>.<\/p>\n<p>If you&#8217;re on Windows using Visual Studio, we recommend installing the latest <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\">Visual Studio 2022 preview<\/a>. .NET 9 can now be installed directly through the Visual Studio installer starting with Visual Studio 2022 17.12 Preview 1.<\/p>\n<p>You can also use Visual Studio Code and the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-dotnettools.csdevkit\">C# Dev Kit<\/a> extension with .NET 9.<\/p>\n<h2>\ud83d\udce2 Team Announcements &amp; Discussions<\/h2>\n<p>The team has been making <a href=\"https:\/\/github.com\/dotnet\/core\/discussions\/9448\">monthly announcements<\/a> alongside full <a href=\"https:\/\/github.com\/dotnet\/core\/tree\/main\/release-notes\/9.0\">release notes<\/a> on the <a href=\"https:\/\/github.com\/dotnet\/core\/discussions\/categories\/news\">dotnet\/core GitHub Discussions<\/a> and has seen great engagement and feedback from the community. We will continue to post each new release on GitHub, but as we get closer to launch this November alongside <a href=\"https:\/\/www.dotnetconf.net\/\">.NET Conf 2024 (save the date today!)<\/a>, we wanted to cross-post our release details on the .NET blog.<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dotnet\/maui\/discussions\/24219\">.NET MAUI<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/aspnetcore\/discussions\/57312\">ASP.NET Core<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/runtime\/discussions\/106350\">Libraries &amp; Runtime<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/source-build\/discussions\/4551\">Source-build<\/a><\/li>\n<\/ul>\n<h2>\ud83d\udd14 Stay up-to-date with .NET 9<\/h2>\n<p>You can stay up-to-date with all the features of .NET 9 with:<\/p>\n<ul>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/whats-new\/dotnet-9\/overview\">What&#8217;s new in .NET 9<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/aspnet\/core\/release-notes\/aspnetcore-9.0\">What&#8217;s new in ASP.NET Core<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/maui\/whats-new\/dotnet-9\">What&#8217;s new in .NET MAUI<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/ef\/core\/what-is-new\/ef-core-9.0\/whatsnew\">What&#8217;s new in EF Core<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/core\/compatibility\/9.0\">Breaking Changes in .NET 9<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/9.0\/README.md\">.NET 9 Releases<\/a><\/li>\n<\/ul>\n<p>Additionally, be sure to subscribe to the GitHub Discussions <a href=\"https:\/\/github.com\/dotnet\/core\/discussions\/categories\/news.atom\">RSS news feed<\/a> for all release announcements.<\/p>\n<p>We want your feedback, so head over to the <a href=\"https:\/\/github.com\/dotnet\/core\/discussions\/9448\">.NET 9 Preview 7 GitHub Discussion<\/a> to discuss features and give feedback for this release.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Try out the latest features in .NET 9 Preview 7 across the .NET runtime, SDK, libraries, ASP.NET Core, Blazor, C#, .NET MAUI, and more!<\/p>\n","protected":false},"author":11288,"featured_media":53219,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,7233,7509,7251,756],"tags":[7797],"class_list":["post-53218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-maui","category-aspnetcore","category-blazor","category-csharp","tag-dotnet-9"],"acf":[],"blog_post_summary":"<p>Try out the latest features in .NET 9 Preview 7 across the .NET runtime, SDK, libraries, ASP.NET Core, Blazor, C#, .NET MAUI, and more!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/53218","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\/11288"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=53218"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/53218\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/53219"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=53218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=53218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=53218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}