.NET 10 预览 7 带来了 ASP.NET Core、Blazor 和 MAUI 的增强功能,并且 C# 14 特性已完成

  • Last Week's Microsoft Release: Microsoft released .NET 10 Preview 7, marking a step toward the final release with improvements across multiple areas.

    • ASP.NET Core:

      • New configuration option to suppress exception handler diagnostics. Default behavior modified for exceptions resolved by IExceptionHandler.
      • Cookie authentication adjusted for better API support, with requests to known API endpoints returning appropriate status codes instead of redirecting. Passkey authentication improved with simplified APIs and broader support in Blazor Web App templates.
      • Fully supports the [.localhost top-level domain], enabling clear domain separation in local development. Enables PipeReader in System.Text.Json for performance improvements.
      • Blazor received refinements like renamed components and APIs, updated metric names, and validation of configured services. OpenAPI.NET integration upgraded to 2.0 stable release with other updates.
    • C# Programming Language: Preview 7 for C# 14 reaches feature completeness. Any features in later previews will be gated behind feature flags.
    • .NET MAUI: Introduces a new XAML source generator to improve build performance and IntelliSense. MediaPicker now handles EXIF data automatically. SafeArea support enhanced on iOS with improved defaults and more control. New control APIs added and deprecated APIs removed.
    • Platform Side:
      -.NET for Android includes fixes and updated support for API level 36.
      -.NET for iOS, Mac Catalyst, macOS, and tvOS support Xcode 26 Beta 4 for.NET 9 targets with improvements in binding generation, runtime performance, and platform-specific APIs.
    • Windows Forms: Updates focused on dark mode rendering, including corrected backgrounds for disabled controls and enhanced PropertyGrid buttons.
  • Full Release Notes: Available on Microsoft’s official documentation with detailed explanations, code samples, and breaking changes.
阅读 29
0 条评论