views:

676

answers:

1

I have a rather involved Visual Studio solution (2010, but it shouldn't matter) that I need to rename. I want to rename the folders to match the new solution name, but I can't figure out a way to refactor the folder names automatically, and going through every single project file will be painful.

Is there an official way to do this? Alternatively (and much less preferably), are there free tools to accomplish this?

+2  A: 

The Rename operations in visual studio only change the filename, i.e. for a project, *.prj and for a solution *.sln. You will need to rename folders seperately using the filesystem, and you will need to remove and readd the projects since they will have new foldernames. However, note that the solution and project files are respectively texst and xml files. You could write your own program that parses them and renames both the folder names, filenames, and fixes the project/solution files internally.

AaronLS
Are there free tools available that do this already? I couldn't find anything.
David Pfeffer
The only thing that might help you is CoolCommands 4.0 "Add Projects From Folder", so that after you have removed/renamed the project folders you can add them all back at once: http://sharptoolbox.com/tools/coolcommands
AaronLS