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,
With source control this is a little tricky. I just needed to move my solution .sln file up one level for easy access while maintaining source control history. I followed the advice of the previous posts but ran into a situation where TFS wanted to move all my projects with the solution. I accomplished this task using a combination with the following steps:
.sln
and then edit the solution in notepad. You will see that the projects are assigned guids and there are file paths to the projects. You need to change all of those paths relative to where your new solution file .sln
resides. Be sure and use double slashes for unique names and paths:GlobalSection(TeamFoundationVersionControl) = preSolution
SccProjectUniqueName1 = MyNewFolder\\MyProject.Common\\MyProject.Common.csproj
SccProjectTopLevelParentUniqueName1 = MySolution.sln
SccProjectName1 = MyNewfolder/MyProject.Common
SccLocalPath1 = MyNewFolder\\MyProject.Common
Check-in and re-map solution to local drive. This worked for me. Hope it helps!