Skip to content

Conversation

@SergeyMenshykh
Copy link
Member

This PR fixes the samples for hosted agents by using the latest images for the .NET sdk and runtime. I also updates the nuget packages to their latest versions.

Closes: #2512

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 updates the hosted agent samples to use .NET 10.0 and the latest versions of dependent NuGet packages, addressing compatibility issues with the hosted agents infrastructure.

  • Updates .NET SDK and runtime Docker images from 9.0 to 10.0
  • Updates NuGet package versions including Azure.AI.OpenAI, Microsoft.Agents, Microsoft.Extensions.AI, and analyzer packages
  • Adds explicit target framework specification to the publish command

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
dotnet/samples/HostedAgents/AgentsInWorkflows/Dockerfile Updates SDK and runtime images to 10.0-alpine, adds target framework to publish command
dotnet/samples/HostedAgents/AgentsInWorkflows/AgentsInWorkflows.csproj Updates NuGet package versions to latest releases, including Azure.AI.OpenAI 2.7.0-beta.1 and analyzer packages
dotnet/samples/HostedAgents/AgentWithTextSearchRag/Dockerfile Updates SDK and runtime images to 10.0-alpine, adds target framework to publish command
dotnet/samples/HostedAgents/AgentWithTextSearchRag/AgentWithTextSearchRag.csproj Updates NuGet package versions to latest releases, matching the AgentsInWorkflows project
dotnet/samples/HostedAgents/AgentWithHostedMCP/Dockerfile Updates SDK and runtime images to 10.0-alpine, adds target framework to publish command
dotnet/samples/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csproj Updates NuGet package versions to latest releases, consistent with other hosted agent samples

@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Dec 2, 2025
Merged via the queue into microsoft:main with commit 5c70e14 Dec 2, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Agent Framework Dec 2, 2025
This was referenced Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET samples Issue relates to the samples

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

.NET: azd deploy fails: .csproj targets net10.0 but Dockerfile uses SDK 9.0 for HostedAgents samples

3 participants