Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Rename Project and cause Namespacing to correspond

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?

like image 544
jdavis Avatar asked Dec 27 '22 03:12

jdavis


1 Answers

Yes, use ReSharper's 'Refactor' menu and select 'Adjust Namespaces'. http://www.jetbrains.com/resharper/webhelp/Refactorings__Adjust_Namespaces.html

like image 67
Teoman Soygul Avatar answered Jan 14 '23 14:01

Teoman Soygul