Renaming namespace on one class renames entire namespace


What I'm trying to accomplish is extracting one class from a namespace... in this particular example, I want to move a class from RPG.Core to TkrainDesigns.Extensions

I tried renaming the namespace within the ExtensionMethod class, but that renamed every single namespace of RPG.Core to TkrainDesigns.Extensions.  I can find no quick way to move a class from one namespace to another (something easily achieved in VS2019 with a right click on the class name).

What I ended up doing (after undoing the rename) was to just change the name in the namespace, and then let the compiler tell me all the places I had to fix the broken references.  

Any help on this would be greatly appreciated.

Comment actions Permalink



Isn't the following refactoring what you are looking for -

Thank you.

Comment actions Permalink

Thank  you, I see it now...  


Please sign in to leave a comment.