Visual Studio move project to a different folder

Egor Pavlikhin picture Egor Pavlikhin · Apr 12, 2010 · Viewed 185.2k times · Source

How do I move a project to a different folder in Visual Studio? I am used to this structure in my projects.

-- app
---- Project.Something
---- Project.SomethingElse

I want to rename the whole namespace SomethingElse to SomethingNew, what's the best way to do that (without manually going into .sln file)?

Answer

Igor ostrovsky picture Igor ostrovsky · Jun 10, 2011

I tried the suggestion to remove and re-add the project, but then fixing up dependencies can be a pain.

I use this approach:

  1. Move the project folder.
    • If the project is in source control, do the move using source control commands.
  2. Edit the solution file in a text editor. There should be only one path that you need to change.