Skip to content

Document MTP generated code namespace conflicts in troubleshooting#54008

Open
Evangelink wants to merge 2 commits into
mainfrom
dev/amauryleve/mtp-generated-namespace-faq
Open

Document MTP generated code namespace conflicts in troubleshooting#54008
Evangelink wants to merge 2 commits into
mainfrom
dev/amauryleve/mtp-generated-namespace-faq

Conversation

@Evangelink
Copy link
Copy Markdown
Member

@Evangelink Evangelink commented May 25, 2026

Documents how to resolve namespace conflicts between MTP-generated code (SelfRegisteredExtensions, MicrosoftTestingPlatformEntryPoint) and types in referenced assemblies when RootNamespace matches a referenced package's public type (for example, a project named System.Security.Cryptography.ProtectedData.Tests that also references the System.Security.Cryptography.ProtectedData package).

Adds a new FAQ entry under Resolve configuration errors > Microsoft.Testing.Platform.MSBuild in the MTP troubleshooting page, showing the recommended fix (override or clear RootNamespace).

Related to microsoft/testfx#7270.


Internal previews

📄 File 🔗 Preview link
docs/core/testing/microsoft-testing-platform-troubleshooting.md Microsoft.Testing.Platform (MTP) troubleshooting

Adds an FAQ entry under the Microsoft.Testing.Platform.MSBuild
troubleshooting section explaining how the generated
SelfRegisteredExtensions and MicrosoftTestingPlatformEntryPoint types
can collide with referenced types when the project name (and therefore
`RootNamespace`) matches a referenced assembly's public type. Shows
how to fix the conflict by overriding or clearing `RootNamespace`.

Related to microsoft/testfx#7270.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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

This PR updates the Microsoft.Testing.Platform (MTP) troubleshooting guidance to document how to fix namespace conflicts caused by MTP MSBuild-generated types when a test project’s RootNamespace collides with types from referenced assemblies.

Changes:

  • Add a new troubleshooting FAQ entry describing RootNamespace collisions and how to resolve them by overriding or clearing RootNamespace.
  • Update the article’s ms.date to reflect the change date.
Show a summary per file
File Description
docs/core/testing/microsoft-testing-platform-troubleshooting.md Adds a new FAQ entry under Microsoft.Testing.Platform.MSBuild describing RootNamespace namespace/type collisions and recommended mitigations.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread docs/core/testing/microsoft-testing-platform-troubleshooting.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-troubleshooting.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Evangelink Evangelink enabled auto-merge (squash) May 25, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants