views:

1425

answers:

3

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.

+10  A: 

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.

El Cheicon
If you are using source control be prepared for some additional work...
Dror
I think the additional work, using source control will be the same if he chooses to take another way, since he's changing the location of the .sln anyway.
El Cheicon
good point though, and yes I am using version control
Brock Woolf
A: 

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

savageguy
A: 

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

jrummell