Either there is an issue with generating the dir file ... or I have a question related to the intended behavior when generating the dir file and the subsequent use of the COBOL command to generate the executable, which I need confirmed. Scenarios: 1. Using Visual Studio 2013 and Visual COBOL 2.2, create a new Win forms project (in my example, I called it TestDir2). After initial creation, there will be a Form1.cbl and a Form1.Designer.cbl, as shown in the VS solution explorer pane. 2. Go to the project properties COBOL tab and click-check the "Generate directives file" option. Build / Rebuild the project and examine the generated directives file. Notice especially the ILSOURCE entries - which ones are there and which ones are not there (the ILSOURCE for Form1.cbl is not there but this (is? / may be?) intended - see the next step). For your convenience, move or copy the .dir file to the folder with the source code, in preparation for the next step. 3. Test the generated .dir file by using the VS 2013 Command Line (32-bit) and position to the appropriate folder and issue the following command: COBOL Form1.cbl use(TestDir2.dir); (note that the semicolon above is important) This will/should generate / regenerate the Exe (or DLL) as appropriate. So far, so good. 4. Now, go back into the project in Visual Studio, and using Solution Explorer, add a new class to the project (just use the default class name: "Class1.cbl"). Now rebuild the project and examine the newly-generated dir file, especially the ILSOURCE entries - which ones are there and which ones are not there (the ILSOURCE for Form1.cbl IS there but the ILSOURCE for Class1.cbl is NOT there. But this (is? / may be?) intended - see the next step). 5. Now move or copy the new dir file to the appropriate folder for convenience and test the generated .dir file by using the VS 2013 Command Line (32-bit) and position to the appropriate folder and issue the following command: COBOL Class1.cbl use(TestDir2.dir); (note that the semicolon above is important) This will/should generate / regenerate the Exe (or DLL) as appropriate. 6. Now delete "Class1.cbl" in Solution Explorer and repeat steps 4 and 5 adding a class named "xClass1.cbl" (instead of "Class1.cbl"). Notice the dir file - you will have to now issue the following to test the generated dir file: COBOL Form1.cbl use(TestDir2.dir); (*NOTE* Do not take a shortcut and just rename Class1.cbl to xClass1.cbl as it appears that renaming does not currently take care of all the behind-the-scenes refactoring that is necessary.) The point (issue? or question?) is this: The Visual-Studio-generated dir file has ILSOURCE entries for each .cbl class of the project, except for the first one appearing alphabetically. This is intended (?), as the typical next step is to use the VS command line prompt and the COBOL command which syntactically must mention a .cbl and this should be the alphabetically first class (as the dir file has ILSOURCE entries for all the other classes, except this first one). Please confirm: Is the above an issue or is this the intended behavior? Also, is there any way to generate the dir from the command line rather than from Visual Studio?
↧