Skip to content

.NET: Remove unnecessary PackageReferences after .NET 10 update - #2394

Merged
Stephen Toub (stephentoub) merged 7 commits into
microsoft:mainfrom
stephentoub:removepackagerefs
Dec 4, 2025
Merged

.NET: Remove unnecessary PackageReferences after .NET 10 update#2394
Stephen Toub (stephentoub) merged 7 commits into
microsoft:mainfrom
stephentoub:removepackagerefs

Conversation

@stephentoub

Copy link
Copy Markdown
Member

No description provided.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 cleans up unnecessary PackageReferences following the .NET 10 update. The changes remove packages that are now included in the .NET 10.0 framework, reducing dependencies while maintaining backward compatibility with earlier framework versions.

Key changes:

  • Removed System.Net.ServerSentEvents, Microsoft.Bcl.AsyncInterfaces, and System.Text.Json package references that are now part of .NET 10.0
  • Removed conditional ItemGroups that contained only these now-unnecessary packages
  • Retained System.Linq.AsyncEnumerable in conditional blocks for pre-.NET 10.0 framework support

Reviewed changes

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

Show a summary per file
FileDescription
Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests.csprojRemoved version override for System.Net.ServerSentEvents
Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.UnitTests.csprojRemoved Microsoft.Bcl.AsyncInterfaces and System.Text.Json from conditional package references
Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.IntegrationTests.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents
Microsoft.Agents.AI.Abstractions.UnitTests.csprojRemoved Microsoft.Bcl.AsyncInterfaces and System.Text.Json from conditional package references
Microsoft.Agents.AI.AGUI.UnitTests.csprojRemoved unconditional package references for System.Net.ServerSentEvents, Microsoft.Bcl.AsyncInterfaces, and System.Text.Json
Microsoft.Agents.AI.A2A.UnitTests.csprojRemoved unconditional ItemGroup containing System.Net.ServerSentEvents and Microsoft.Bcl.AsyncInterfaces
AgentConformance.IntegrationTests.csprojRemoved Microsoft.Bcl.AsyncInterfaces and System.Text.Json from conditional package references
Microsoft.Agents.AI.Hosting.OpenAI.csprojRemoved System.Net.ServerSentEvents and System.Text.Json from conditional package references
Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents and System.Text.Json
Microsoft.Agents.AI.Hosting.A2A.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents
Microsoft.Agents.AI.Hosting.A2A.AspNetCore.csprojRemoved System.Net.ServerSentEvents and System.Text.Json from conditional package references
Microsoft.Agents.AI.AGUI.csprojRemoved unconditional Microsoft.Bcl.AsyncInterfaces package reference
Microsoft.Agents.AI.A2A.csprojRemoved unconditional package references for System.Net.ServerSentEvents and Microsoft.Bcl.AsyncInterfaces
Agent_MCP_Server_Auth.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents
Agent_Step10_AsMcpTool.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents
A2AAgent_AsFunctionTools.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents and Microsoft.Bcl.AsyncInterfaces
A2AClient.csprojRemoved conditional ItemGroup containing System.Net.ServerSentEvents and Microsoft.Bcl.AsyncInterfaces

Aris Nguyen (arisng) pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
…2394)
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@stephentoub@rogerbarreto@SergeyMenshykh@markwallace-microsoft