Problem:
Having more than one program to build into a .NET executable from the command line.
For example:
Considering about having 3 programs - proga.cbl, progb.cbl, and progc.cbl to be able to rebuild them from the Net Express command line so that proga.cbl will become the main.exe and progb.cbl and progc.cbl become components of the proga.exe.
Resolution:
To achieve this by making use of ILSOURCE - to use the following command line from a Net Express command prompt as a template:
cobol proga.cbl ILSOURCE (progb.cbl) ILSOURCE (progc.cbl) ILGEN
After running this command there will be a proga.exe, and opening a Visual Studio command prompt and to change directory to the location of the proga.exe and running the command
ILDASM proga.exe
will show the components and programs that make up the proga.exe.



