From 6ca359c5db9fe5139644873cf6ca193fe6dc7d04 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 5 Feb 2026 11:00:51 -0800 Subject: [PATCH 01/14] Update aspnetcore.md for Preview 1 --- release-notes/11.0/preview/preview1/aspnetcore.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/release-notes/11.0/preview/preview1/aspnetcore.md b/release-notes/11.0/preview/preview1/aspnetcore.md index 69ab76c883..ee50cff04d 100644 --- a/release-notes/11.0/preview/preview1/aspnetcore.md +++ b/release-notes/11.0/preview/preview1/aspnetcore.md @@ -13,4 +13,10 @@ ASP.NET Core updates in .NET 11: - [Discussion](https://aka.ms/dotnet/11/preview1) - [Release notes](README.md) -This Preview 1 release does not contain new ASP.NET Core feature additions. +Here's a summary of what's new in ASP.NET Core in this Preview 1 release: + +- [Feature](#feature) + +## Feature + +Feature summary. From a1edb7fb4bc9d729d6695fbb1256e6e252734cfc Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:38:19 -0800 Subject: [PATCH 02/14] Add ASP.NET Core 11 Preview 1 release notes (#10237) --- .../11.0/preview/preview1/aspnetcore.md | 593 +++++++++++++++++- 1 file changed, 585 insertions(+), 8 deletions(-) diff --git a/release-notes/11.0/preview/preview1/aspnetcore.md b/release-notes/11.0/preview/preview1/aspnetcore.md index ee50cff04d..591bc9fda1 100644 --- a/release-notes/11.0/preview/preview1/aspnetcore.md +++ b/release-notes/11.0/preview/preview1/aspnetcore.md @@ -1,11 +1,33 @@ # ASP.NET Core in .NET 11 Preview 1 - Release Notes -Here's a summary of what's new in ASP.NET Core in this preview release. +Here's a summary of what's new in ASP.NET Core in this preview release: -ASP.NET Core updates in .NET 11: +- [EnvironmentBoundary component](#environmentboundary-component) +- [Label component for forms](#label-component-for-forms) +- [DisplayName component](#displayname-component) +- [QuickGrid `OnRowClick` event](#quickgrid-onrowclick-event) +- [Relative navigation with `RelativeToCurrentUri`](#relative-navigation-with-relativetocurrenturi) +- [`GetUriWithHash()` extension method](#geturiwithhash-extension-method) +- [BasePath component](#basepath-component) +- [MathML namespace support](#mathml-namespace-support) +- [BL0010 analyzer for JSInterop](#bl0010-analyzer-for-jsinterop) +- [`IComponentPropertyActivator` for custom property injection](#icomponentpropertyactivator-for-custom-property-injection) +- [SignalR `ConfigureConnection` for Interactive Server components](#signalr-configureconnection-for-interactive-server-components) +- [Improved Blazor reconnection experience](#improved-blazor-reconnection-experience) +- [`IHostedService` support in Blazor WebAssembly](#ihostedservice-support-in-blazor-webassembly) +- [Environment variables in Blazor WebAssembly configuration](#environment-variables-in-blazor-webassembly-configuration) +- [Opt-in metrics and tracing for Blazor WebAssembly](#opt-in-metrics-and-tracing-for-blazor-webassembly) +- [Docker support in Blazor Web App template](#docker-support-in-blazor-web-app-template) +- [FileContentResult support in OpenAPI](#filecontentresult-support-in-openapi) +- [`IOutputCachePolicyProvider` for custom output caching](#ioutputcachepolicyprovider-for-custom-output-caching) +- [`TimeProvider` in ASP.NET Core Identity](#timeprovider-in-aspnet-core-identity) +- [Auto-trust development certificates in WSL](#auto-trust-development-certificates-in-wsl) -- [What's new in ASP.NET Core in .NET 11](https://learn.microsoft.com/aspnet/core/release-notes/aspnetcore-11.0) documentation. -- [Breaking changes](https://learn.microsoft.com/dotnet/core/compatibility/11.0#aspnet-core) +ASP.NET Core updates in .NET 11 Preview 1: + +- [Release notes](aspnetcore.md) +- [What's new in ASP.NET Core in .NET 11](https://learn.microsoft.com/aspnet/core/release-notes/aspnetcore-11) documentation. +- [Breaking changes](https://learn.microsoft.com/aspnet/core/breaking-changes/11/overview) - [Roadmap](https://github.com/dotnet/aspnetcore/issues/59443) .NET 11 Preview 1: @@ -13,10 +35,565 @@ ASP.NET Core updates in .NET 11: - [Discussion](https://aka.ms/dotnet/11/preview1) - [Release notes](README.md) -Here's a summary of what's new in ASP.NET Core in this Preview 1 release: +## EnvironmentBoundary component + +Blazor now includes a built-in `EnvironmentBoundary` component for conditional rendering based on the hosting environment. This component is similar to the MVC environment tag helper and provides a consistent way to render content based on the current environment across both server and WebAssembly hosting models. + +The `EnvironmentBoundary` component accepts `Include` and `Exclude` parameters for specifying environment names. The component performs case-insensitive matching and follows the same semantics as the MVC `EnvironmentTagHelper`. + +```razor +@using Microsoft.AspNetCore.Components.Web + + +
+ Debug mode enabled +
+
+ + +

Pre-production environment

+
+ + +

@DateTime.Now

+
+``` + +The component works consistently in both Blazor Server and Blazor WebAssembly scenarios by injecting `IHostEnvironment`, eliminating the need for manual environment checks and conditional logic. + +## Label component for forms + +A new `Label` component has been added to Blazor forms that renders accessible labels with support for both nested and non-nested patterns. The component automatically extracts display names from `[Display]` or `[DisplayName]` attributes, falling back to the property name if no attributes are present. + +The `Label` component supports two common label-input association patterns: + +**Nested pattern** (implicit association): + +```razor + +``` + +Renders: + +```html + +``` + +**Non-nested pattern** (for/id association): + +```razor +