github dotnet/extensions v11.0.0

one hour ago

Version 11.0.0 ships alongside .NET 11 and with net11 targets added to packages. Highlights of this release include new experimental Documents and Document Extraction abstractions, metric instrument descriptions, and a sliding-window retry budget for HTTP resilience.

Experimental API Changes

Now Stable

  • HTTP server latency telemetry (AddHttpServerLatencyTelemetry) APIs are now stable (previously EXTEXP0013) #7898

New Experimental APIs

  • New experimental API: Documents abstractions in the new Microsoft.Extensions.Documents.Abstractions package (EXTEXP0019) #7835
  • New experimental API: Document Extraction in the new Microsoft.Extensions.DocumentExtraction and Microsoft.Extensions.DocumentExtraction.Abstractions packages (MEDE0001) #7588
  • New experimental API: HTTP resilience retry budget (HttpRetryBudgetOptions, HttpRetryResiliencePipelineBuilderExtensions, OnRetryBudgetExhaustedArguments) (EXTEXP0001) #7867
  • New experimental API: Description on metric attributes (EXTEXP0003) #7837

Obsoleted APIs

  • HybridCacheOptions.DisableCompression is now obsolete (EXTOBS0003) #7885

What's Changed

Telemetry and Logging

  • Add Description to metric attributes and describe all instruments #7837 by @evgenyfedorov2 (co-authored by @Copilot)
  • Capture trace context, thread ID and message template in buffered logs #7818 by @evgenyfedorov2 (co-authored by @Copilot)
  • Allow bool and numeric types for strongly-typed metric tags #7877 by @evgenyfedorov2 (co-authored by @Copilot)
  • Fix route parameter redaction when a parameter value contains a delimiter used later in the same path segment #7828 by @evgenyfedorov2 (co-authored by @Copilot)
  • Fix lost log records when logging reentrantly on the same thread #7847 by @evgenyfedorov2 (co-authored by @Copilot)
  • Fix logging generator stack overflow on type cycles #7861 by @evgenyfedorov2 (co-authored by @Copilot)
  • Honor [LogPropertyIgnore] during transitive logging and [LogProperties(Transitive = true)] on properties #7868 by @evgenyfedorov2 (co-authored by @Copilot)
  • Make DataClassificationSet static to decrease allocations #7874 by @evgenyfedorov2 (co-authored by @Copilot)

Caching

  • Add HybridCache.GetOrCreateAsync overloads for dynamic setting of options #7568 by @svick (co-authored by @Copilot)
  • Mark HybridCacheOptions.DisableCompression as obsolete #7885 by @slang25
  • Fix HybridCache stampede state removal race #7814 by @svick (co-authored by @Copilot)
  • Fix HybridCache reservation over-release on DisableUnderlyingData miss #7879 by @Eng3bbas

AI

  • AI: Restore neutral tool approval rejection message #7913 by @jozkee (co-authored by @Copilot)
  • Fix ImageGenerationOptions.Clone dropping StreamingCount #7829 by @Empiree
  • Fix evaluation context serialization without reflection fallback #7869 by @valkiara
  • Pin MessagePack 2.5.307 in AI template AppHost project #7853 by @evgenyfedorov2 (co-authored by @Copilot)

Packaging and Target Frameworks

  • Condition framework-provided package references for .NET 11 #7915 by @jeffhandley (co-authored by @Copilot)
  • Use latest dependency band for opted-in legacy targets #7925 by @jeffhandley (co-authored by @Copilot)
  • Remove unsupported-TFM package warnings #7923 by @jeffhandley (co-authored by @Copilot)

ASP.NET Core and Diagnostics

  • Mark AddHttpServerLatencyTelemetry as stable #7898 by @EasyL0ver (co-authored by @Copilot)
  • Register DI prerequisites in AspNetCore.Diagnostics.Middleware extension methods #7859 by @evgenyfedorov2 (co-authored by @Copilot)
  • Add units to HealthChecks and HeaderParsing counters #7839 by @evgenyfedorov2 (co-authored by @Copilot)

HTTP Resilience and Diagnostics

  • Add sliding-window retry budget and selectable defaults for HTTP resilience #7867 by @Alejon
  • Register DI prerequisites in Http.Diagnostics extension methods #7854 by @evgenyfedorov2 (co-authored by @Copilot)

Documents and Document Extraction

  • Add experimental shared Documents abstractions #7835 by @luisquintanilla (co-authored by @Copilot)
  • Add experimental document extraction over shared Documents abstractions #7588 by @luisquintanilla (co-authored by @Copilot)

Compliance

  • Add netstandard2.0 target to Microsoft.Extensions.Compliance.Redaction #7851 by @evgenyfedorov2 (co-authored by @Copilot)

Documentation Updates

  • Update HeaderParsing README with current metric and tag names #7838 by @evgenyfedorov2 (co-authored by @Copilot)
  • Update docs for API review and experimental API expectations #7922 by @jeffhandley (co-authored by @Copilot)

Test Improvements

  • Add VectorData DI conformance tests for embedding generator per scope #7920 by @Empiree

Repository Infrastructure Updates

  • Bump brace-expansion from 2.1.4 to 2.1.7 in /src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript #7830
  • Bump brace-expansion from 1.1.18 to 1.1.21 in /src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/tasks/PublishAIEvaluationReport #7831
  • Bump source-map-js from 1.2.1 to 1.2.2 in /src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript #7832
  • Bump dotnet-coverage from 18.11.2 to 18.12.0 #7833
  • Bump PowerShell from 7.6.6 to 7.6.7 #7845
  • Improve release-manager workflow and validation guidance #7848 by @jeffhandley (co-authored by @Copilot)
  • [main] Update dependencies from dotnet/arcade #7860
  • Bump follow-redirects from 1.16.0 to 1.16.1 in /src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/tasks/PublishAIEvaluationReport #7865
  • Bump PowerShell from 7.6.7 to 7.6.8 #7878
  • Bump microsoft.visualstudio.slngen.tool from 12.0.53 to 12.0.58 #7887
  • Bump PowerShell from 7.6.8 to 7.6.9 #7888
  • Bump qs from 6.15.2 to 6.16.1 in /src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript #7890
  • Fix merging of code coverage reports #7891 by @evgenyfedorov2
  • Prepare 11.0.0 release infrastructure with .NET 11 RC3 #7912 by @jeffhandley (co-authored by @Copilot)
  • Bump dotnet-reportgenerator-globaltool from 5.5.11 to 5.5.12 #7918
  • Fix PAT pool validation #7930 by @jeffhandley (co-authored by @Copilot)

Acknowledgements

Packages in this release

Package Version
Microsoft.AspNetCore.AsyncState 11.0.0
Microsoft.AspNetCore.Diagnostics.Middleware 11.0.0
Microsoft.AspNetCore.HeaderParsing 11.0.0
Microsoft.AspNetCore.Testing 11.0.0
Microsoft.Extensions.AI 11.0.0
Microsoft.Extensions.AI.Abstractions 11.0.0
Microsoft.Extensions.AI.Evaluation 11.0.0
Microsoft.Extensions.AI.Evaluation.Console 11.0.0
Microsoft.Extensions.AI.Evaluation.Quality 11.0.0
Microsoft.Extensions.AI.Evaluation.Reporting 11.0.0
Microsoft.Extensions.AI.Evaluation.Reporting.Azure 11.0.0
Microsoft.Extensions.AI.OpenAI 11.0.0
Microsoft.Extensions.AmbientMetadata.Application 11.0.0
Microsoft.Extensions.AmbientMetadata.Build 11.0.0
Microsoft.Extensions.AsyncState 11.0.0
Microsoft.Extensions.AuditReports 11.0.0
Microsoft.Extensions.Caching.Hybrid 11.0.0
Microsoft.Extensions.Compliance.Abstractions 11.0.0
Microsoft.Extensions.Compliance.Redaction 11.0.0
Microsoft.Extensions.Compliance.Testing 11.0.0
Microsoft.Extensions.DependencyInjection.AutoActivation 11.0.0
Microsoft.Extensions.Diagnostics.ExceptionSummarization 11.0.0
Microsoft.Extensions.Diagnostics.HealthChecks.Common 11.0.0
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization 11.0.0
Microsoft.Extensions.Diagnostics.ResourceMonitoring 11.0.0
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes 11.0.0
Microsoft.Extensions.Diagnostics.Testing 11.0.0
Microsoft.Extensions.Http.Diagnostics 11.0.0
Microsoft.Extensions.Http.Resilience 11.0.0
Microsoft.Extensions.ObjectPool.DependencyInjection 11.0.0
Microsoft.Extensions.Resilience 11.0.0
Microsoft.Extensions.ServiceDiscovery 11.0.0
Microsoft.Extensions.ServiceDiscovery.Abstractions 11.0.0
Microsoft.Extensions.ServiceDiscovery.Dns 11.0.0
Microsoft.Extensions.ServiceDiscovery.Yarp 11.0.0
Microsoft.Extensions.StaticAnalysis 11.0.0
Microsoft.Extensions.Telemetry 11.0.0
Microsoft.Extensions.Telemetry.Abstractions 11.0.0
Microsoft.Extensions.TimeProvider.Testing 11.0.0
Microsoft.Extensions.VectorData.Abstractions 11.0.0
Microsoft.Extensions.VectorData.ConformanceTests 11.0.0
Microsoft.Extensions.AI.Evaluation.NLP 11.0.0-preview.1.26560.3
Microsoft.Extensions.AI.Evaluation.Safety 11.0.0-preview.1.26560.3
Microsoft.Extensions.DataIngestion 11.0.0-preview.1.26560.3
Microsoft.Extensions.DataIngestion.Abstractions 11.0.0-preview.1.26560.3
Microsoft.Extensions.DataIngestion.Markdig 11.0.0-preview.1.26560.3
Microsoft.Extensions.DataIngestion.MarkItDown 11.0.0-preview.1.26560.3
Microsoft.Extensions.Diagnostics.Probes 11.0.0-preview.1.26560.3
Microsoft.Extensions.DocumentExtraction 11.0.0-preview.1.26560.3
Microsoft.Extensions.DocumentExtraction.Abstractions 11.0.0-preview.1.26560.3
Microsoft.Extensions.Documents.Abstractions 11.0.0-preview.1.26560.3
Microsoft.Extensions.Hosting.Testing 11.0.0-preview.1.26560.3
Microsoft.Extensions.Options.Contextual 11.0.0-preview.1.26560.3
Microsoft.Extensions.AI.Templates 11.0.0-preview.3.26560.3
Microsoft.Agents.AI.ProjectTemplates 1.13.0-preview.1.26560.3

Full Changelog: v10.11.0...v11.0.0

Don't miss a new extensions release

NewReleases is sending notifications on new releases.