Skip to content

Conversation

Arlodotexe
Copy link
Member

Full list of changes can be found in CommunityToolkit/Tooling-Windows-Submodule#272

Requires prerequisite PR CommunityToolkit/Tooling-Windows-Submodule#273

- Components with classes matching the component name had an invalid namespace declared for test projects.
- Previously, the test namespace would have looked like `ComponentNameExperiment.Tests`, but was changed to look like `ComponentName.Tests`.
- In places where `ComponentName` is an existing class, this causes the observed error.
 -We were unable to use a unified namespace here due to the layout change it causes in the Visual Studio Test Explorer, breaking the existing grouping.
 - To fix the issue "'SomeComponent' is a namespace but is used like a type" while keeping known behavior, we simple remove the `.` in namespace declarations for `SomeComponent.Tests`.
@Arlodotexe Arlodotexe enabled auto-merge (rebase) March 18, 2025 19:32
auto-merge was automatically disabled March 18, 2025 20:36

Rebase failed

@Arlodotexe Arlodotexe merged commit d178f4d into main Mar 18, 2025
22 checks passed
@Arlodotexe Arlodotexe deleted the fix/tests/single-component/rootnamespace branch March 18, 2025 22:03
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.

2 participants