Application Delivery Management
Application Modernization & Connectivity
IT Operations Management
CyberRes
The build fails to compile a resource (.rc) file if it was imported from a Net Express project using the Import Net Express Project feature. Here is the error message:
COBCH0053 Directive /R invalid or not allowed hereThe problem is caused by the Import Net Express Project feature that sets the wrong Build Action value for .rc files. It sets to 'Compile', which is to compile COBOL sources.
The correct Build Action value for .rc files is 'Resource Compile'.
This issue was reported in RPI 1119877 against Visual COBOL 5.0, and the workaround is to change the Build Action to Resource compile.
This is now fixed in Visual COBOL 6.0.
Fano R. | Support Engineer | Micro Focus