These are the basic steps for creating applications in
Visual COBOL:
- Create a project:
- In Visual Studio, click
.
- Expand
COBOL in the
Installed pane.
- Click a project template category - for example,
Native,
Windows Desktop. The categories that you have installed depend on the workloads (ASP, Windows Communication Foundation, etc.) you have selected
when installing Visual Studio.
- Click one of the available project templates.
- Specify a name, location, and solution name.
- Click
OK.
- Add files to the project:
- Right-click the project in Solution Explorer and click
Add > New Item or
Add > Existing Item to either create new files or to add existing ones.
If you are adding existing COBOL source files, you can use
Add Existing COBOL Items. The IDE then scans the files to determine what Compiler directives they require and automatically sets the directives on
them.
- Optionally, add folders to the projects, if needed, using the
Add > New Folder context menu command.
If a folder contains copybooks, you need to add it to the
Copybook Paths of the project as the folder is not added automatically to these paths - right-click the folder in Solution Explorer,
click
Add and then click
Add Folder to Copybook Paths.
- Configure the project's properties:
- Click
Project >
MyProject Properties.
- Click the tab on the left-hand side to set build and debug Compiler directives and specify the output file type and location.
- Optionally, configure any file settings - right-click a file in Solution Explorer and click
Properties.
- Build your project or the entire solution - click
Build > Solution or
Build > Build
MyProject.
- Debug the project - click
Debug > Start Debugging.