Adding Solutions to Source Control

Configure the source control settings in the Options dialog box before you add a solution, and the objects in a solution, to source control.

You can add only one solution at a time to source control. When you add a solution, all the objects in the solution are automatically added.

Windows that you add to source control are saved as two separate files, an SRW file and a XAML file. These files are automatically checked in and checked out together when you perform these operations on window objects. However, you must save a window object before you can compare its XAML file with the file on the source control server. If you use an unsaved (dirty) XAML file for the comparison, you are likely to get incorrect results.

  1. If source control settings are not already configured for your current solution, select Tools > Options to configure these settings, then close the Options dialog box.
    For Microsoft Visual Studio help on configuring source control settings, select any of the options under the Source Control node in the left pane of the Options dialog box, then press F1.
  2. In the PowerBuilder .NET Solution Explorer, right-click the solution and select Add Solution to Source Control.
    A dialog box opens for the source control system you selected in the Options dialog box.
  3. Log in to the source control system and add the solution to source control in the same way you would add it from the manager of your source control system.
After you add a solution to source control, you can select context menu items in the Solution Explorer to perform all operations permitted by your source control system, on the solution itself, or on the objects that the solution contains. Adding a solution also enables the Pending Checkins window, which you can open from the View menu or from the context menus on targets in the Solution Explorer.