Visual Studio - How to change a project's folder name and solution name without breaking the solution

Brian McCarthy picture Brian McCarthy · Mar 15, 2011 · Viewed 116.5k times · Source

I am creating a project based off an old project because it has a lot of the functionality that I am required to use.

I want to rename all the directories and solution names to have the name of the new project. Under Documents\Visual Studio 2008\Projects I was able to change the initial directory and solution file names, but not the name of the subdirectory which houses the bin, obj, and properties folders. When I change the name of that subdirectory, none of the files will open when I open up the solution.

How can I change the project's folder name inside Visual Studio 2008 so that it will load all the files as part of the solution and still work?

Answer

Denis Ivin picture Denis Ivin · Mar 15, 2011

You could open the SLN file in any text editor (Notepad, etc.) and simply change the project path there.