Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docs/core/whats-new/dotnet-11/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: What's new in .NET libraries for .NET 11
description: Learn about the updates to the .NET libraries for .NET 11.
titleSuffix: ""
ms.date: 08/12/2026
ms.date: 08/25/2026
ai-usage: ai-assisted
ms.update-cycle: 3650-days
---
Expand Down Expand Up @@ -518,7 +518,7 @@

These constants can be used with the `StringSyntax` attribute to provide better tooling support for string literals containing code in these languages.

## Caching and configuration
## Caching, configuration, and logging

- [Configuration binding](#configuration-binding)
- [MemoryCache OpenTelemetry metrics](#memorycache-opentelemetry-metrics)
Expand All @@ -527,6 +527,8 @@
- [Options-aware HybridCache factories](#options-aware-hybridcache-factories)
- [Asynchronous validation with DataAnnotations](#asynchronous-validation-with-dataannotations)
- [Activity tracing configuration](#activity-tracing-configuration)
- [Generic source-generated logging methods](#generic-source-generated-logging-methods)
- [Improved reliability for configuration file change detection](#improved-reliability-for-configuration-file-change-detection)

Check warning on line 531 in docs/core/whats-new/dotnet-11/libraries.md

View workflow job for this annotation

GitHub Actions / OpenPublishing.Build annotations

OPS Warning

Cannot find bookmark '#improved-reliability-for-configuration-file-change-detection' in 'docs/core/whats-new/dotnet-11/libraries.md'.

### Configuration binding

Expand Down Expand Up @@ -641,6 +643,14 @@

The same release adds `ActivitySourceFactory` and unseals `ActivitySource`, which together support factory-driven creation and refreshable listeners.

### Generic source-generated logging methods

The logging source generator now supports generic methods decorated with <xref:Microsoft.Extensions.Logging.LoggerMessageAttribute>, primarily to avoid boxing. Generic type parameters can use standard constraints, such as `class`, `struct`, `unmanaged`, interfaces, base types, and `new()`. The `allows ref struct` anti-constraint isn't supported and produces [SYSLIB1011](../../../fundamentals/syslib-diagnostics/syslib1011.md).

```csharp
[LoggerMessage(0, LogLevel.Trace, "Received {Code} ({Length} bytes)")]
public static partial void PacketReceived<TCode>(ILogger logger, TCode code, int length)
where TCode : struct, Enum;
### Improved reliability for configuration file change detection

The <xref:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher> type, which configuration providers use to detect configuration file changes, includes several reliability improvements.
Expand Down
Loading