Udostępnij za pośrednictwem


How to: Move a Source-controlled Item

In Visual Studio, you can move a source-controlled item from one project or solution folder to another. When you move an item, you move all associated source control history and metadata as well if the source control plug-in supports namespace change propagation. Both source and destination items involved in a move operation must be located in the same source control database. For more about namespace change propagation, see Introducing Source Control.

Note

A move operation can only occur between two projects in the same solution, or between two solutions. For a move to be enabled, a solution and its projects must share one source control binding. For more information, see How to: Bind or Unbind a Solution or Project.

To move a source-controlled item

  1. In Visual Studio, open Solution Explorer.

  2. Click and hold on the item that you want to move, and drag it to the destination solution or project in Solution Explorer.

See Also

Tasks

How to: Bind or Unbind a Solution or Project

Concepts

Introducing Source Control

Other Resources

Performing Source Control Tasks