Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I Change the Rename my Project File and Class files in a smooth way with Visual Studio?

I am finally done with my ASP.NET Webapplicaton and my solution contains three projects: the webapplication itself, WCF and Classlibrary. But I would like to refactor it to change class names, project names, etc. How can I do this in a smooth way so everything doesn't get messed up, like namespaces etc. I also have Resharper but I'm new to that.

When I renamed my Project file and .csproj etc I still have problems with namespaces the new namespace is not working it asks for the old one.

Thanks in advance!

like image 438
Obsivus Avatar asked Aug 08 '12 14:08

Obsivus


1 Answers

Right click the Class/Object Name(inside the file) > Refactor > Rename.

It'll ask you if you want to preview as well so you know what gets changed and what not.

like image 54
jbkkd Avatar answered Nov 15 '22 03:11

jbkkd