Skip to content

feat(namespace): update using statements across solution#30

Merged
CalvinAllen merged 1 commit into
mainfrom
feat/namespace/update-using-statements
Dec 20, 2025
Merged

feat(namespace): update using statements across solution#30
CalvinAllen merged 1 commit into
mainfrom
feat/namespace/update-using-statements

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

Updates using statements that reference the old namespace throughout the entire solution.

Changes

  • Added UpdateUsingStatementsInSolution to scan all projects in the solution
  • Added UpdateUsingStatementsInFile to handle all using statement variants:
    • using OldName;using NewName;
    • using OldName.SubNamespace;using NewName.SubNamespace;
    • using Alias = OldName.Type;using Alias = NewName.Type;
    • global using OldName;global using NewName;
    • using static OldName.ClassName;using static NewName.ClassName;
  • Recursively handles solution folders

Test plan

  • Rename a project that other projects have using statements for
  • Verify using OldName; statements are updated to using NewName;
  • Verify nested usings like using OldName.Sub; are updated
  • Verify using aliases are updated
  • Verify solution still builds after rename

Closes #9

- Add UpdateUsingStatementsInSolution to scan all projects
- Handle regular using, nested using, using aliases, global using, and using static
- Recursively handles solution folders

Closes #9
@CalvinAllen CalvinAllen merged commit 4268611 into main Dec 20, 2025
1 check passed
@CalvinAllen CalvinAllen deleted the feat/namespace/update-using-statements branch December 20, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(namespace): update using statements across solution

1 participant