To add files to source control from Visual Studio

About this task

You can change Visual Studio defaults to prompt you to add items to source control when you save them, or you can add files to HCL VersionVault control, as described in this topic.

Visual Studio windows present the files that it recommends you add to source control. In Visual Studio .NET, you have no control over which files are added to source control. For a list of Visual Studio file types, see the Visual Studio Help.

To preserve all of your source file data, you must also add projects to source control.

From Visual Basic

About this task

To add files to source control from Visual Basic:

Procedure

  1. Click Tools > VersionVault > Add to VersionVault.
  2. In the Add to Source Control window, select one or more files.
  3. If you work on a UCM project, find and set your view to an activity.
  4. Click OK.

Results

By setting up Visual J++ and Visual C++ to prompt you

About this task

To add files to source control by setting up Visual J++ and Visual C++ to prompt you:

Procedure

  1. Set up Visual Studio to present files.
  2. Click Project > Source Control > Add to Source Control.
  3. In the Add to Source Control window, select one or more files.
  4. To continue working on the file, select Checkout after adding to source control. Otherwise, clear Checkout after adding to source control to leave the file checked in.
  5. If you work on a UCM project, find and set your view to an activity.
  6. Click OK.

From Visual J++ Project Explorer or Visual C++ FileView

About this task

To add files to source control from Visual J++ Project Explorer or Visual C++ FileView:

Procedure

  1. In Project Explorer or FileView, select one or more files.
  2. Click Project > Source Control > Add to Source Control.
  3. To continue working on the file, select the Checkout after adding to source control check box. Otherwise, clear the check box to leave the file checked in.
  4. If you work on a UCM project, find and set your view to an activity.
  5. Click OK.