Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Relocate Visual Studio project (.sln) file

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.

like image 839
Brock Woolf Avatar asked Mar 09 '09 15:03

Brock Woolf


People also ask

How do I change project location in Visual Studio?

In Visual Studio, click Tools > Options. Expand Projects and Solutions and click Locations. The Projects location field defines the default location for storing new projects. You can change this path if you are using a different working folder.

How do I move a project to another folder?

Click on the options menu (the vertical ellipsis) in the row and click Move. Click Browse to select the folder to which you want to move the project. Click Move.


1 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.

like image 199
El Cheicon Avatar answered Oct 02 '22 20:10

El Cheicon