Skip to content

Update aiagent-webapi template to latest Agent Framework versions (rc1/260219)#7339

Merged
stephentoub merged 2 commits intomainfrom
copilot/update-agent-framework-version
Feb 25, 2026
Merged

Update aiagent-webapi template to latest Agent Framework versions (rc1/260219)#7339
stephentoub merged 2 commits intomainfrom
copilot/update-agent-framework-version

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

The aiagent-webapi project template was pinned to 1.0.0-preview.260127.1 of the Agent Framework packages. The Agent Framework has since published 1.0.0-rc1 for core packages and 1.0.0-preview.260219.1/1.0.0-alpha.260219.1 for hosting packages.

Version updates (eng/packages/ProjectTemplates.props)

Package Old New
Microsoft.Agents.AI 1.0.0-preview.260127.1 1.0.0-rc1
Microsoft.Agents.AI.Workflows 1.0.0-preview.260127.1 1.0.0-rc1
Microsoft.Agents.AI.Hosting.OpenAI 1.0.0-alpha.260127.1 1.0.0-alpha.260219.1
Microsoft.Agents.AI.DevUI (implicit via Microsoft.Agents.AI) 1.0.0-preview.260219.1 (new explicit entry)
Microsoft.Agents.AI.Hosting (implicit via Microsoft.Agents.AI) 1.0.0-preview.260219.1 (new explicit entry)

Compensating template change (AIAgentWebApi-CSharp.csproj-in)

DevUI and Hosting previously borrowed the Microsoft.Agents.AI version key since all packages shipped together. They now trail the core on versioning, so each gets its own version variable:

- <PackageReference Include="Microsoft.Agents.AI.DevUI"    Version="${PackageVersion:Microsoft.Agents.AI}" />
- <PackageReference Include="Microsoft.Agents.AI.Hosting"  Version="${PackageVersion:Microsoft.Agents.AI}" />
+ <PackageReference Include="Microsoft.Agents.AI.DevUI"    Version="${PackageVersion:Microsoft.Agents.AI.DevUI}" />
+ <PackageReference Include="Microsoft.Agents.AI.Hosting"  Version="${PackageVersion:Microsoft.Agents.AI.Hosting}" />

No Program.cs changes are required — all template-visible APIs (AddAIAgent, ChatClientAgent, AgentWorkflowBuilder.BuildSequential, AddAsAIAgent, AddOpenAIResponses/Conversations, MapOpenAIResponses/Conversations, MapDevUI) are unchanged across these versions.

Original prompt

Update the aiagent-webapi project template to the latest version of Agent Framework, ensuring any required compensating changes are made to the template code.

Created from Copilot CLI via the copilot delegate command.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Microsoft Reviewers: Open in CodeFlow

…1/260219)

Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Copilot AI changed the title [WIP] Update aiagent-webapi project template to latest Agent Framework version Update aiagent-webapi template to latest Agent Framework versions (rc1/260219) Feb 25, 2026
Copilot AI requested a review from jeffhandley February 25, 2026 05:23
@github-actions github-actions bot added the area-ai-templates Microsoft.Extensions.AI.Templates label Feb 25, 2026
@jeffhandley
Copy link
Member

All end-to-end integration tests passed locally as well.

@jeffhandley jeffhandley marked this pull request as ready for review February 25, 2026 05:52
@jeffhandley jeffhandley requested a review from a team as a code owner February 25, 2026 05:52
Copilot AI review requested due to automatic review settings February 25, 2026 05:52
@jeffhandley jeffhandley requested a review from a team as a code owner February 25, 2026 05:52
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

Updates the aiagent-webapi project template’s Agent Framework dependencies to align with the latest released versions, accounting for the fact that some hosting-related packages now version independently from the core packages.

Changes:

  • Bump Agent Framework core package versions to 1.0.0-rc1 in template package version props.
  • Add explicit version entries for Microsoft.Agents.AI.DevUI and Microsoft.Agents.AI.Hosting (now trailing core versioning).
  • Update the template .csproj-in to reference the new per-package version keys for DevUI and Hosting.

Reviewed changes

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

File Description
src/ProjectTemplates/Microsoft.Agents.AI.ProjectTemplates/templates/AIAgentWebApi-CSharp/AIAgentWebApi-CSharp.csproj-in Switches DevUI/Hosting PackageReference version tokens to dedicated package version keys.
eng/packages/ProjectTemplates.props Updates Agent Framework package versions and adds new explicit version entries for DevUI and Hosting.

@stephentoub stephentoub merged commit 0a74a5f into main Feb 25, 2026
10 checks passed
@stephentoub stephentoub deleted the copilot/update-agent-framework-version branch February 25, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai-templates Microsoft.Extensions.AI.Templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants