Micro Focus has the following recommendations for configuring your projects in Visual Studio:
The project's and file's IDE property pages in Enterprise Developer provide a wide range of COBOL and Mainframe Subsystem-specific settings.
The IDE settings are easy to edit and easy to port. Once you use them to configure your projects, they apply both inside Visual Studio and at the command line.
Micro Focus recommends that to set Compiler directives you use the IDE property pages in preference to any other method. Specifically, you should avoid the following:
You might end up setting the same directive using both the GUI controls and Additional Directives which could lead to errors.
For example, you could manually type CICSECM in Additional Directives at the project level. At the same time, it could also be set to None in a file's GUI controls. As a result, there's an ambiguity as to which of the settings actually applies.
You should only specify a directive in Additional Directives when no corresponding IDE setting exists.
Avoid setting any $SET statements directly in the source files. Instead, use the project's properties pages inside the IDE to set the corresponding Compiler directive. The reasons for this are:
Micro Focus recommends that you avoid using any external files (such as .dir) to store any required Compiler directives. The reasons for this are:
If you load your source files using the Open Folder feature, do not edit the .json that the feature creates within the file location. Instead, use the workspace, folder or file GUI property pages to specify any Compiler directives.
Within these GUI property pages, avoid manually typing a Compiler directive in the Additional Directives field if the corresponding GUI property already exists.