Skip to content

.NET: Bump Azure.AI.Projects to 2.1.0-beta.4#6795

Open
rogerbarreto wants to merge 7 commits into
microsoft:mainfrom
rogerbarreto:bump/azure-ai-projects-2.1.0-alpha.20260629.1
Open

.NET: Bump Azure.AI.Projects to 2.1.0-beta.4#6795
rogerbarreto wants to merge 7 commits into
microsoft:mainfrom
rogerbarreto:bump/azure-ai-projects-2.1.0-alpha.20260629.1

Conversation

@rogerbarreto

@rogerbarreto rogerbarreto commented Jun 29, 2026

Copy link
Copy Markdown
Member

Motivation & Context

Bumps Azure.AI.Projects to the newly released 2.1.0-beta.4, adopting its breaking changes (naming refactor of the Foundry session-files and toolbox APIs plus strongly typed toolbox tools).

Description & Review Guide

  • What are the major changes?

    • Bump Azure.AI.Projects 2.1.0-beta.3 to 2.1.0-beta.4.
    • Align transitive floors required by beta.4: Azure.Core 1.57.0 to 1.60.0, System.ClientModel 1.13.0 to 1.14.0, Microsoft.Identity.Client.Extensions.Msal 4.83.1 to 4.84.2. Azure.Core 1.60.0 cascades the shared 10.0.8 servicing packages to 10.0.9 (Microsoft.Bcl.AsyncInterfaces, System.Diagnostics.DiagnosticSource, System.Text.Json, System.Threading.Channels, Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.Logging.Abstractions).
    • Adapt consumers to renamed SDK members: AgentSessionFiles now scoped at GetAgentSessionFiles(agentName, sessionId) with UploadAsync / GetAllAsync / DeleteAsync and SizeInBytes; AgentToolboxes CreateVersionAsync / DeleteAsync; strongly typed WebSearchToolboxTool / MCPToolboxTool replacing ProjectsAgentTool.AsProjectTool.
  • What is the impact of these changes?

    • Naming-only refactor plus a dependency bump. No public Agent Framework API or runtime behavior changes.
  • What do you want reviewers to focus on?

    • The toolbox tool model migration in the two Foundry samples.

Related Issue

Fixes #6798

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass (Foundry 684, Foundry.Hosting 834)
  • dotnet format verified (CI parity, pinned SDK image)

Bumps Azure.AI.Projects beta.3 to alpha.20260629.1 and aligns transitive deps (System.ClientModel 1.14.0, Azure.Core 1.59.0, Msal 4.84.2). Adapts to renamed AgentSessionFiles APIs (Upload/GetAll/Delete, scoped GetAgentSessionFiles, SizeInBytes), AgentToolboxes (CreateVersion/Delete), and strongly typed toolbox tools (WebSearchToolboxTool, MCPToolboxTool). Adds azure-sdk public dev feed for prerelease restore.
Copilot AI review requested due to automatic review settings June 29, 2026 10:05
@moonbox3 moonbox3 added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Jun 29, 2026

Copilot AI 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

Updates the .NET dependencies and sample/test call sites to accommodate breaking changes in the latest Azure.AI.Projects daily alpha, including the new toolbox tool model and the scoped AgentSessionFiles API shape, while adding the Azure SDK public dev feed to enable restores of the alpha package.

Changes:

  • Bump Azure.AI.Projects to 2.1.0-alpha.20260629.1 and align required transitive floors (Azure.Core, System.ClientModel, Microsoft.Identity.Client.Extensions.Msal).
  • Add the azure-sdk-dev NuGet source with package source mapping limited to the prerelease Projects-related packages.
  • Update integration tests and samples for renamed/scoped SDK members (AgentSessionFiles, AgentToolboxes, strongly-typed toolbox tools).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
dotnet/tests/Foundry.Hosting.IntegrationTests/SessionFilesHostedAgentTests.cs Updates hosted session-files integration test to new scoped AgentSessionFiles APIs.
dotnet/samples/03-workflows/Declarative/InvokeFoundryToolboxMcp/Program.cs Migrates toolbox provisioning to strongly-typed toolbox tools and renamed toolbox CRUD APIs.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Program.cs Migrates toolbox creation to MCPToolboxTool and renamed toolbox CRUD APIs.
dotnet/nuget.config Adds Azure SDK public dev feed with package source mapping for prerelease Projects packages.
dotnet/Directory.Packages.props Bumps central package versions for Azure.AI.Projects and required transitive dependency floors.

Comment thread dotnet/tests/Foundry.Hosting.IntegrationTests/SessionFilesHostedAgentTests.cs Outdated

@github-actions github-actions Bot 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.

Automated Code Review

Reviewers: 5 | Confidence: 87% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Failure Modes, Design Approach


Automated review by rogerbarreto's agents

Swaps the alpha daily build for the published 2.1.0-beta.4. Drops the azure-sdk public dev feed since beta.4 and its deps are on nuget.org. Beta.4 requires Azure.Core 1.60.0, which cascades the 10.0.8 servicing packages (Microsoft.Bcl.AsyncInterfaces, System.Diagnostics.DiagnosticSource, System.Text.Json, System.Threading.Channels, Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.Logging.Abstractions) to 10.0.9.
@rogerbarreto rogerbarreto changed the title .NET: Bump Azure.AI.Projects to 2.1.0-alpha.20260629.1 .NET: Bump Azure.AI.Projects to 2.1.0-beta.4 Jul 1, 2026
@rogerbarreto

Copy link
Copy Markdown
Member Author

Heads up on CI: the dotnet-build failures are a repo-wide NuGetAudit advisory (NU1903, Microsoft.OpenApi 2.0.0 via the AgentWebChat sample), unrelated to this bump. Tracked in #6852. check-format and the net10.0 integration test job pass here.

@rogerbarreto rogerbarreto marked this pull request as ready for review July 1, 2026 10:41

@github-actions github-actions Bot 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.

Automated Code Review

Reviewers: 5 | Confidence: 92% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Failure Modes, Design Approach


Automated review by rogerbarreto's agents

Reverts the over-eager System.Threading.Channels 10.0.9 bump back to 10.0.8 (it was not part of the Azure.Core 1.60.0 cascade and caused a net472 MSB3277 conflict against the 10.0.8 that Microsoft.Extensions.AI pulls). Drops the now-obsolete Azure.Core VersionOverride=1.59.0 in HostedWorkflowHandoff (added on main to satisfy AgentServer while the central pin was lower); the central pin is now 1.60.0 which already satisfies the >=1.59.0 floor, and the override was downgrading this project below sibling projects (CS1705).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: [BREAKING] Bump Azure.AI.Projects to 2.1.0-beta.4

5 participants