How to Relocate Visual Studio project (.sln) file

Brock Woolf picture Brock Woolf · Mar 9, 2009 · Viewed 29.2k times · Source

I would like to move the Visual Studio solution (myProject.sln) file into a folder.

The problem with doing this is that all the relative paths in the project will break, how can you relocate the project without updating all relative paths inside the project manually?

Thanks.

Answer

El Cheicon picture El Cheicon · Mar 9, 2009

Just click on the solution in the Solution Explorer and then click on "Save myProject.sln as..." in the File Menu. This will save your .sln in the folder that you choose without breaking the references.