In Visual Studio 2010 I have an ASP.NET MVC 3 project called blahblah. As such, all the code within this project is namespaced as blahblah.Controllers, blahblah.Configuration etc.
I want to be able to rename the project to blahblah.Web. Now I know I can just right click on the project and go to rename, but if I do this, none of the namespacing matches anymore.
I would like some way to convert all namespacing so that it is relative to the new project name. blahblah.Web.Controllers, blahblah.Web.Configuration, etc.
Is there an easy way to do this?
Yes, use ReSharper's 'Refactor' menu and select 'Adjust Namespaces'. http://www.jetbrains.com/resharper/webhelp/Refactorings__Adjust_Namespaces.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With