Compiling Visual Studio Projects

Note:
  • Visual Studio project support is only available on Windows platforms.
  • Compiling Visual Studio projects and solutions requires that you have one of the following Rocket Software products installed:
    • Enterprise Developer for Visual Studio
    • Enterprise Developer Build Tools

The Rocket Enterprise extension provides auto-generated build tasks for any .cblproj, .pliproj or .sln files. The projects can be for native COBOL, PLI/I code, or for .NET COBOL code.

The project and solution must be created with Enterprise Developer for Visual Studio. The .cblproj or the .pliproj file, and the .sln solution file must be stored in the same folder that you open in Visual Studio Code or any subfolder beneath it.

To compile the sources:

  1. Click Terminal > Run Build Task.

    This shows the Task Picker with the supplied build tasks - one for building the project file, and one for building the solution.

    1. Select the file you want to build - for COBOL this is either COBOL: MSBuild (<projname>.cblproj) or COBOL: MSBuild (<slnname>.sln).

      For PL/I code the available tasks are PL/I: MSBuild (<projname>.cblproj) or PL/I: MSBuild (<slnname>.sln)

      You can optionally configure which task should be the default one from this widget.

      The build output is displayed in the Terminal window. Any errors are underlined with red squiggly lines in the editor.

  2. Check the Problems panel for any issues. Double-click any of the rows to navigate to the lines of code in the editor that contain the issue.