How to: Move a Project Binding Root

You might need to move the binding root for a project if some files that you want to add to the project are located outside the project root.

To move a project binding root

  1. In Visual Studio, open Solution Explorer and select a project containing files that are outside the solution folder or project root.

  2. On the File menu, click Source Control, then Change Source Control.

  3. In the Change Source Control dialog box, click Unbind.

  4. In the message box, click Unbind to confirm that you want to remove the project from source control.

  5. If the solution and project share a source control binding, unbind the solution as well.

  6. With the project selected, access the Change Source Control dialog box again and click Bind.

  7. If prompted, log in to your source control database.

  8. Select the parent directory in which all files in the project are stored. In most cases, this is the <solutionname>.root folder.

  9. If you had to unbind the solution along with the project, you must rebind it to a database folder.

See Also

Reference

Change Source Control Dialog Box

Other Resources

Performing Source Control Tasks