Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Add support for updating fully qualified type references like OldName.MyClassNewName.MyClass
  • Uses word boundary regex (\b) to avoid partial matches (e.g., SomeOldName won't become SomeNewName)
  • Scans all .cs files across the entire solution

Changes

  • Added UpdateFullyQualifiedReferencesInSolution and related methods to SourceFileService
  • Added Step 11 to the rename process in RenamifyProjectCommand
  • Updated progress dialog to show the new step

Examples handled

// Before
var service = new OldName.Services.MyService();
OldName.Helpers.Utility.DoSomething();
typeof(OldName.MyClass)

// After  
var service = new NewName.Services.MyService();
NewName.Helpers.Utility.DoSomething();
typeof(NewName.MyClass)

Test plan

  • Rename a project that has fully qualified references in other projects
  • Verify partial matches are NOT replaced (e.g., SomeOldName.Foo stays unchanged)
  • Verify progress dialog shows 11 steps

Closes #36

Add support for updating fully qualified type references like
OldName.MyClass → NewName.MyClass throughout the solution.

- Add UpdateFullyQualifiedReferencesInSolution to SourceFileService
- Uses word boundary regex to avoid partial matches
- Add Step 11 to rename process
- Update progress dialog with new step

Closes #36
@CalvinAllen CalvinAllen force-pushed the feat/fully-qualified-refs branch from df4824f to ca0abee Compare December 20, 2025 17:22
@CalvinAllen CalvinAllen merged commit d9edf76 into main Dec 20, 2025
@CalvinAllen CalvinAllen deleted the feat/fully-qualified-refs branch December 20, 2025 17:23
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.

feat(namespace): update fully qualified type references in code

2 participants