Skip to content

C#: Fully qualify Core namespace references in test files#7166

Merged
macsux merged 1 commit intomainfrom
fix/qualify-core-namespace-refs
Mar 26, 2026
Merged

C#: Fully qualify Core namespace references in test files#7166
macsux merged 1 commit intomainfrom
fix/qualify-core-namespace-refs

Conversation

@macsux
Copy link
Copy Markdown
Contributor

@macsux macsux commented Mar 26, 2026

Summary

  • Test files under OpenRewrite.Tests.* namespaces had unqualified Core.X references (e.g. Core.Recipe, Core.Tree, Core.Cursor, Core.ExecutionContext) that resolved to OpenRewrite.Tests.Core.X instead of OpenRewrite.Core.X, causing 85 build errors
  • Fixed by fully qualifying all such references to OpenRewrite.Core.X across 12 test files

Test plan

  • dotnet build OpenRewrite.sln — 0 errors
  • dotnet test — all 1742 tests pass
  • :rewrite-csharp:publishToMavenLocal — BUILD SUCCESSFUL

🤖 Generated with Claude Code

…t files

Test files under OpenRewrite.Tests.* namespaces had unqualified Core.X
references (e.g. Core.Recipe, Core.Tree, Core.Cursor, Core.ExecutionContext)
that resolved to OpenRewrite.Tests.Core.X instead of OpenRewrite.Core.X.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 26, 2026
@macsux macsux merged commit 094c812 into main Mar 26, 2026
1 check passed
@macsux macsux deleted the fix/qualify-core-namespace-refs branch March 26, 2026 19:21
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant