To check in files from Visual Studio

About this task

Tip: Instead of using the procedures in Checking in from Visual Basic and Checking in from Visual J++, Visual C++, and Visual Studio .NET, you can set up Visual Studio to check in files automatically when you close a project, solution, or workspace (see Setting up Visual Studio to check in files automatically).

Checking in from Visual Basic

About this task

To check in files from Visual Basic:

Procedure

  1. Click Tools > VersionVault > Check In.
  2. The Check In Files to VersionVault window lists all VB project files currently checked out. Select files to check in.
  3. In the Comment field, append to the comments you entered when you checked out the files. Comments are displayed in the Properties Browser and the History Browser.
  4. Use any of the following commands in the Check In Files to VersionVault window:
    • Advanced > Query for comment on each file. Prompts you to enter a different comment for each file you check in.
    • Advanced > Checkin even if identical. Creates a new version of a checked out file even if you have not modified it. The version will be identical to its predecessor. If you do not select this option, unmodified files are left checked out.
    • Differences. Starts the Diff Merge or XML Diff Merge tool to display the differences between the currently selected file and its checked in predecessor.
    • Keep checked out. Checks in files (which adds their modifications the VOB) and checks them out again.
  5. Click OK.

Checking in from Visual J++, Visual C++, and Visual Studio .NET

About this task

To check in files from Visual J++, Visual C++, and Visual Studio .NET:

Procedure

  1. Select one or more files in Project Explorer or FileView. (If you set up Visual Studio to present files, you can skip this step.)
  2. In Visual Studio .NET, click File > Source Control > Check In. Otherwise, click Project > Source Control > Check In.

    The Check In Files window opens, with the files you chose in Step 1 selected. (If you set up Visual Studio to present files, the window displays all files in the project that can be checked in. You may select additional files from the list to check in.)

  3. In the Comment field, append comments to those you entered when you checked out the files. Comments are displayed in the Properties Browser and the History Browser.
  4. Use any of the following commands in the Check In Files to VersionVault window:
    • Advanced > Query for comment on each file. Prompts you to enter a different comment for each file you check in.
    • Advanced > Checkin even if identical. Creates a new version of a checked-out file even if you have not modified it. The version will be identical to its predecessor. If you do not select this option, unmodified files are left checked out.

      In Visual Studio .NET, always set this option.

      Advanced > Preserve file modification time. This option preserves the platform modification time on the file rather than having it set to the time that you checked in the file.

      In Visual Studio .NET, you can get improved performance if you set this option.

    • Differences. Starts Diff Merge or XML Diff Merge to display the differences between the currently selected file and its checked in predecessor.
    • Keep checked out. Checks in files (which adds their modifications the VOB) and checks them out again.
    • Don't show any more checkin dialogs. In Visual J++, this option prevents the Check In Item(s) window from opening during future checkin operations. If you select this option, you cannot change default Visual Studio behavior for a given checkin operation.
  5. Click OK.

Setting up Visual Studio to check in files automatically

About this task

Change default Visual Studio behavior by making the following selections:

  • In Visual Basic, in the Check in files when closing the VB project? area, choose Yes or Ask.
  • In Visual J++, select Check in everything when closing the solution.
  • In Visual Studio .NET and Visual C++, select Check in files when closing the workspace.