Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 6, 2025

Issue Analysis

This PR addresses issue #[issue_number] where users reported build failures when using Microsoft.SemanticKernel.Agents.A2A with A2A.AspNetCore version 0.3.1-preview. The error indicated that the package was still referencing the older A2A version 0.1.0.0.

Investigation Results

After thorough investigation, I've confirmed that the repository source code already has the correct dependency configuration:

Current Configuration ✅

  • A2A package version: 0.3.1-preview
  • A2A.AspNetCore package version: 0.3.1-preview

Both are properly configured in /dotnet/Directory.Packages.props (lines 107-108).

Verification Performed

  • ✅ Built Microsoft.SemanticKernel.Agents.A2A successfully in both Debug and Release configurations
  • ✅ Built sample projects A2AClient and A2AServer successfully
  • ✅ All 6 A2A unit tests pass without errors
  • ✅ Created a test project referencing both A2A 0.3.1-preview and Microsoft.SemanticKernel.Agents.A2A - builds successfully

Root Cause

The issue reported by users is specifically about the published NuGet package on nuget.org, not the source code itself. The NuGet package that was previously published was built from an earlier version of the code that referenced the older A2A dependency.

Resolution

No code changes are required because the source code is already correct. The issue will be automatically resolved for users when:

  1. A new version of Microsoft.SemanticKernel.Agents.A2A is built from the current source code (which already has the updated dependencies)
  2. The new package version is published to NuGet.org

This PR serves as documentation that the fix is already in place in the repository and ready for the next package release.

Testing

# All builds successful
dotnet build src/Agents/A2A/Agents.A2A.csproj
dotnet build samples/Demos/A2AClientServer/A2AClient/A2AClient.csproj  
dotnet build samples/Demos/A2AClientServer/A2AServer/A2AServer.csproj

# All tests passing
dotnet test src/Agents/UnitTests/Agents.UnitTests.csproj --filter "FullyQualifiedName~A2A"
# Result: Passed! - Failed: 0, Passed: 6, Skipped: 0
Original prompt

This section details on the original issue you should resolve

<issue_title>.Net: Bug: Update A2A dependency in Microsoft.SemanticKernel.Agents.A2A to 0.3.1-preview</issue_title>
<issue_description>Describe the bug
After upgrading A2A.AspNetCore from 0.1.0-preview.2 to 0.3.1-preview, the project fails to build when using Microsoft.SemanticKernel.Agents.A2A.
The error indicates that A2AClient is missing because the package Microsoft.SemanticKernel.Agents.A2A is still referencing A2A version 0.1.0.0 and has not been updated to align with the newer A2A.AspNetCore dependency.

Error message:

A2AClientExtensions.cs(49, 16): [CS0012] The type 'A2AClient' is defined in an assembly that is not referenced.
You must add a reference to assembly 'A2A, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project referencing Microsoft.SemanticKernel.Agents.A2A and A2A.AspNetCore version 0.3.1-preview.
  2. Build the project.
  3. Observe the compile-time error about A2AClient.

Expected behavior
Microsoft.SemanticKernel.Agents.A2A should reference the updated A2A dependency (0.3.1-preview) so that projects can build successfully with the latest preview.

Screenshots

Image

Platform

  • Language: C#
  • Source: NuGet
  • Microsoft.SemanticKernel.Agents.A2A (latest)
  • A2A.AspNetCore (0.3.1-preview)
  • IDE: Jetbrains Rider
  • OS: Windows 11

Additional context
This seems to be caused by a version mismatch: Microsoft.SemanticKernel.Agents.A2A is still locked to A2A 0.1.0.0 instead of the latest preview (0.3.1-preview). Updating the dependency would resolve the issue.</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #13189

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] .Net: Bug: Update A2A dependency in Microsoft.SemanticKernel.Agents.A2A to 0.3.1-preview .Net: Verify A2A dependency is already updated to 0.3.1-preview - No code changes needed Oct 6, 2025
Copilot finished work on behalf of markwallace-microsoft October 6, 2025 14:48
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.

.Net: Bug: Update A2A dependency in Microsoft.SemanticKernel.Agents.A2A to 0.3.1-preview

2 participants