Skip to content

Conversation

@wsugarman
Copy link
Contributor

@wsugarman wsugarman commented Dec 9, 2025

Now that System.Linq.Async's APIs have been incorporated into the BCL, there is a new package called System.Linq.AsyncEnumerable. However, if an assembly targets .NET 10 (or uses the System.Linq.AsyncEnumerable package), the class AsyncEnumerable has a collision.

Given that the package System.Linq.AsyncEnumerable has a .NET Standard 2.0 target, I think we should migrate to this package to play nicely with .NET 10+

(I also included SuppressTfmSupportBuildWarnings to ignore the sort of "poison-pill" targets files. These new packages should work despite the scary warning messages)

Copilot AI review requested due to automatic review settings December 9, 2025 17:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates from the System.Linq.Async package to the newer System.Linq.AsyncEnumerable package to avoid naming collisions with .NET 10+ and align with the BCL's incorporation of async LINQ APIs.

Key changes:

  • Updated package references from System.Linq.Async to System.Linq.AsyncEnumerable
  • Added StringComparer.Ordinal parameter to ToDictionaryAsync call to match new API signature
  • Suppressed TFM support build warnings across multiple project files

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Directory.Packages.props Updated package versions for System.Linq.AsyncEnumerable (10.0.0) and Microsoft.Bcl.AsyncInterfaces (10.0.0)
src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj Changed package reference from System.Linq.Async to System.Linq.AsyncEnumerable
src/DurableTask.AzureStorage/OrchestrationSessionManager.cs Added StringComparer.Ordinal parameter to ToDictionaryAsync call
tools/DurableTask.props Added SuppressTfmSupportBuildWarnings property
samples/DistributedTraceSample/OpenTelemetry/OpenTelemetrySample.csproj Added SuppressTfmSupportBuildWarnings property
samples/DistributedTraceSample/ApplicationInsights/ApplicationInsightsSample.csproj Added SuppressTfmSupportBuildWarnings property
samples/Correlation.Samples/Correlation.Samples.csproj Added SuppressTfmSupportBuildWarnings property

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant