Udostępnij za pośrednictwem


How to: Bind or Unbind a Solution or Project

You must bind a solution or project to source control so that the item will have access to basic source control commands, such as Check Out, Check In, and Get. Binding associates the local copy of the item with the master copy in the database.

Unbinding a source-controlled solution or project removes the item from source control by disassociating the local copy from the master copy in the database, and disables all source control commands. You might need to unbind an item if:

  • You need to rebind it to the backup version of a database when the primary server goes down. You can connect to a backup server, rebind your local copy of the solution to its master copy in the backed-up database, and resume working normally. For more information, see How to: Connect or Disconnect a Solution or Project.

  • You want to start a new branch without any source control history in a different database folder.

  • You want to use another source control plug-in.

Unbinding an item does not remove it permanently from the database. For more information on deleting an item, see How to: Delete a Source-controlled Item.

To bind a solution or project to source control

  1. In Visual Studio, open Solution Explorer and select a solution or project to bind.

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

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

  4. Select the database and location to which to bind, and click OK.

To unbind a solution or project from source control

  1. In Visual Studio, open Solution Explorer and select a solution or project to unbind.

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

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

  4. Click OK.

See Also

Tasks

How to: Delete a Source-controlled Item

Concepts

How to: Connect or Disconnect a Solution or Project

Reference

Change Source Control Dialog Box

Other Resources

Performing Source Control Tasks