Skip to content

Move InvalidTestApplicationBuilderTypeForAI from MTP to MTP.AI#7517

Merged
Evangelink merged 1 commit intomainfrom
dev/ygerges/resource
Mar 10, 2026
Merged

Move InvalidTestApplicationBuilderTypeForAI from MTP to MTP.AI#7517
Evangelink merged 1 commit intomainfrom
dev/ygerges/resource

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 10, 2026 19:33
@Youssef1313 Youssef1313 marked this pull request as ready for review March 10, 2026 19:33
Copy link
Copy Markdown
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

Moves the InvalidTestApplicationBuilderTypeForAI localized string out of the core Microsoft.Testing.Platform resources and into the Microsoft.Testing.Platform.AI extension resources, so the AI package owns its own user-facing messages.

Changes:

  • Removed InvalidTestApplicationBuilderTypeForAI from PlatformResources.resx, PlatformResources.cs, and the Platform .xlf localization files.
  • Added AIExtensionResources.resx plus per-locale .xlf files in Microsoft.Testing.Platform.AI.
  • Updated ChatClientProviderExtensions to throw using AIExtensionResources.InvalidTestApplicationBuilderTypeForAI and removed the linked PlatformResources.cs include from the AI project.

Reviewed changes

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

Show a summary per file
File Description
src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx Removes the AI-specific resource entry from core platform resources.
src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.cs Removes the strongly-typed accessor for the removed resource.
src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.*.xlf Drops the corresponding translation units from platform localization files.
src/Platform/Microsoft.Testing.Platform.AI/Resources/AIExtensionResources.resx Introduces the AI extension-owned resource entry.
src/Platform/Microsoft.Testing.Platform.AI/Resources/xlf/AIExtensionResources.*.xlf Adds locale files for the AI extension resource.
src/Platform/Microsoft.Testing.Platform.AI/Microsoft.Testing.Platform.AI.csproj Stops linking core PlatformResources.cs into the AI project and adjusts package properties.
src/Platform/Microsoft.Testing.Platform.AI/ChatClientProviderExtensions.cs Switches the thrown error message to the AI resource class/namespace.

@Evangelink Evangelink enabled auto-merge March 10, 2026 20:08
@Evangelink Evangelink merged commit 2aa3037 into main Mar 10, 2026
16 checks passed
@Evangelink Evangelink deleted the dev/ygerges/resource branch March 10, 2026 20:29
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.

3 participants