How to Relocate Visual Studio project (.sln) file

Viewed 34867

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.

5 Answers

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.

open the .sln file inside notepad or similiar, near the top it has the relative base path - modify that to suit your needs.

You can update the relative paths to each project in a text editor.

Related