微软刚刚发布了 .NET 10 Preview 1,供开发人员开始测试并提供反馈。新版本包含大量新功能。值得注意的是,ZipArchive 在性能和内存方面都有改进,使处理压缩文件的应用程序受益匪浅。此外还有 C# 的改进和 F# 的更新,以及 .NET MAUI 的质量改进。
以下是 .NET 10 Preview 1 的完整变更列表:
-
Libraries
- Finding Certificates By Thumbprints Other Than SHA-1
- Finding PEM-encoded Data in ASCII/UTF-8
- New Method Overloads in ISOWeek for DateOnly Type
- String Normalization APIs to Work with Span of Characters
- Numeric Ordering for String Comparison
- Adding TimeSpan.FromMilliseconds Overload with a Single Parameter
- ZipArchive performance and memory improvements
- Additional TryAdd and TryGetValue overloads for OrderedDictionary
- More Left-Handed Matrix Transformation Methods
- Full Release Notes
Runtime
- Array Interface Method Devirtualization
- Stack Allocation of Arrays of Value Types
- AVX10.2 Support
- Full Release Notes
SDK
C#
- nameof in unbound generics
- Implicit span conversions
- field backed properties
- Modifiers on simple lambda parameters
- Experimental feature – String literals in data section
- Full Release Notes
F#
This release you will find updates across the F# language, FSharp.Core standard library, and FSharp.Compiler.Service.
Visual Basic
ASP.NET Core & Blazor
- OpenAPI 3.1 support
- Generate OpenAPI documents in YAML format
- Response description on ProducesResponseType
- Detect if URL is local using RedirectHttpResult.IsLocalUrl
- Improvements to integration testing of apps with top-level statements
- QuickGrid RowClass parameter
- Blazor script as a static web asset
- Route syntax highlighting for Blazor RouteAttribute
- Full Release Notes
.NET MAUI
This release focused on quality improvements for .NET MAUI. In addition to the CollectionView enhancements for iOS and Mac Catalyst are included in this release, browse through the full GitHub release notes for all of the improvements.
.NET for Android
- Android 16 (Baklava) Beta 1
- Minimum supported Android API recommendations
- Building with JDK-21 is now supported
- dotnet run support for Androd projects
- Enable marshal methods by default
- Visual Studio Design-Time Builds no longer invoke aapt2
.NET for iOS, Mac Catalyst, macOS, tvOS
Browse the full release notes for all of this and more.
Windows Forms
- Clipboard related serialization and deserialization changes
- Obsoleted Clipboard APIs
- New Clipboard related APIs
- Full Release Notes
Windows Presentation Foundation (WPF)
This release focused on quality improvements. A full list of changes can be found in the release notes.
Entity Framework Core
- Support for the .NET 10 LeftJoin operator
- ExecuteUpdateAsync now accepts a regular, non-expression lambda
- Full Release Notes
Container Images
如果您决定试用 .NET 10 Preview 1,可以在相应的 GitHub Discussions 上提出您的反馈意见,为即将发布的版本提供改进。
您可以在这里下载最新版本: