visual studio rename project and all namespaces code example
Example: visual studio rename namespace
How-to
Place your cursor in the namespace name.
Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
Select Change namespace to <folder name>.
See also