Posted in

微软发布 .NET 9 预览版 6,带来一系列改进_AI阅读总结 — 包阅AI

包阅导读总结

1.

关键词:.NET 9、Preview 6、Microsoft、Updates、Enhancements

2.

总结:微软上周发布了.NET 9 框架的第六个预览版,涵盖了多个方面的更新,包括运行时、SDK、库、C 等,旨在提升性能、改善开发者体验和扩展功能,稳定版预计今年晚些发布。

3.

主要内容:

-.NET 9 预览 6 发布,包含.NET Runtime、SDK、库、C 及框架如 ASP.NET Core 等多方面更新。

-.NET Libraries 有诸多改进,如 System.Numerics 增强、Logging Source Generator 支持新特性等。

– 新增功能如 GeneratedRegex 可应用于属性、新的 EnumerateSplits 方法等。

-.NET Runtime 有 ARM64 代码生成、算法简化、循环优化等更新,还支持新指令集等。

– SDK 增强安全和构建过程,如 NuGetAudit 等。

– C 13 引入部分属性。

– ASP.NET Core 有静态资产指纹、SignalR 改进等。

– 稳定版预计今年发布,为 Standard Term Support 版本,支持多操作系统,有 18 个月支持期。

– 可在 Linux、macOS 和 Windows 下载。

思维导图:

文章地址:https://www.infoq.com/news/2024/07/ms-releases-dotnet-9-preview6/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global

文章来源:infoq.com

作者:Almir Vuk

发布时间:2024/7/19 0:00

语言:英文

总字数:576字

预计阅读时间:3分钟

评分:88分

标签:.NET,微软,.NET 9,软件开发,性能优化


以下为原文内容

本内容来源于用户推荐转载,旨在分享知识与观点,如有侵权请联系删除 联系邮箱 media@ilingban.com

Last week Microsoft released the sixth preview of the .NET 9 framework, introducing several updates across the .NET Runtime, SDK, libraries, C#, and frameworks such as ASP.NET Core, Blazor, and .NET MAUI. As stated, this release aims to enhance performance, improve developer experience, and expand functionality.

The stable version of the .NET 9 framework, is expected to be releasedlater this year, and itis aStandard Term Support (STS) releasethatwill be supported onmultiple operating systemsfor 18 months, from November 12th, 2024, to May 12th, 2026.

The latest preview includes several notable improvements in .NET Libraries. System.Numerics sees several enhancements, and the Logging Source Generator now supports Primary Constructors. System.Text.Json receives multiple updates, such as a new JsonSchemaExporter, recognition of nullable annotations, and new contract metadata APIs.

Also, the GeneratedRegexattribute can now be applied to properties, and a new EnumerateSplits method has been introduced for Regex to simplify splitting various collection types.

Additionally, with the release of the sixth preview developers can now benefit from ageneric OrderedDictionary, alsoReadOnlySet<T> has been introduced for creating read-only wrappers around ISet<T>.

Other improvements include support for collection lookups with spans, more span-based APIs like StartsWith and EndsWith, optimized Base64Url encoding and decoding, SocketsHttpHandler as the default in HttpClientFactory, and TLS resume with client certificates on Linux.

Also,System.Diagnostics.Metrics now provides the Gauge instrument according to theOpenTelemetry specification. As reported, the Gauge instrument is designed to record non-additive values when changes occur.

The .NET Runtime in this preview offers several updates. ARM64 Code Generation now includes the ability to store operations. RyuJIT’s block reordering algorithm has been simplified for better code layout, and interesting loop optimizations have been implemented to reduce code size and improve performance. Readers are encouraged to look into release notes for more details.

Address exposure has been minimized through enhancements in RyuJIT’s tracking of local variable addresses. The release also introduces support for AVX10v1, a new SIMD instruction set from Intel, and includes improvements in hardware intrinsic code generation and constant folding for floating point and SIMD operations.

Furthermore, the .NET 9 Preview 6 SDK introduces new features aimed at enhancing security and build processes. NuGetAudit now raises warnings for vulnerabilities in transitive dependenciesand anew command, dotnet nuget why, has been added to help developers understand the use of transitive packages in their projects.

Additionally, MSBuild BuildChecks have been introduced to enforce rules and invariants during builds.

C# 13 introduces partial properties, which, similar to partial methods, primarily support source generators. These additions build upon the improvements made in C# 9 to partial methods, offering more flexibility for developers.

ASP.NET Core in this preview includes several enhancements. Static web assets now feature fingerprinting to prevent the use of stale assets and improve caching behavior for faster load times. SignalR benefits from improved distributed tracing with a new ActivitySourcenamed Microsoft.AspNetCore.SignalR.Serverthat emits events for hub method calls.

Furthermore, the Microsoft.AspNetCore.OpenAPI library has been enhanced with support for Requiredand DefaultValue attributes and schema transforms on OpenAPI documents. New analyzers warn developers when Authorizeis overridden by AllowAnonymous, and severalother analyzers have been added.

Additionally, the ComponentPlatform has been renamed to RendererInfo, and Kestrel will now split HTTP/2 headers that are too large for a single HEADER or CONTINUATION frame.

Interested readers can find more information about this release in the official notes.Lastly, the .NET 9 Preview 6 download isavailable for Linux, macOS, and Windows.