How to: Get an Item Using a SourceSafe Plug-in

Getting database items in a SourceSafe plug-in occurs very much as it does in Visual SourceSafe. You can use a SourceSafe plug-in in Visual Studio to retrieve the latest version of a solution, project, or file from the database to your working folder. You can also retrieve past versions of an item. If the plug-in is unable to automatically reconcile the master copy with your local copy during a get operation, it prompts you to choose which version you want.

A SourceSafe plug-in supports the Get Latest Version command to retrieve the latest version of a file or the latest versions of files in a project or solution. A plug-in also supports the Get command, which retrieves a selected file or a subset of the files in a selected solution or project.

To retrieve the latest version of all the files in a project:

  1. In Visual Studio, open Solution Explorer and select an item.

  2. On the File menu, click Source Control, then click Get Latest Version.

  3. Check your working folder to ensure that the item has been correctly retrieved.

To retrieve a specific file in a project:

  1. In Visual Studio, open Solution Explorer and select the file to retrieve.

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

  3. In the Get dialog box, clear the check boxes that appear next to the items you do not want to retrieve.

  4. Click OK.

  5. Check your working folder to ensure that the file has been correctly retrieved.

See Also

Tasks

How to: Get an Item to Your Working Folder

Reference

Get Dialog Box (Explorer and Plug-in)