Compiler Directives for .NET COBOL

When you build a project, the Compiler directives for .NET COBOL are generated according to the project structure and properties. We recommend that you compile programs using the IDE, so that the directives are automatically set.

If you want to compile at the command line, the following directives are available:

Application directives:
ILASSEMBLY Specifies the output assembly file
ILGEN Generates the IL for a program or library
ILMAIN Specifies the entry method for an assembly
ILNAMESPACE Specifies the namespace of all programs/classes being compiled
ILOUTPUT The filename of the output assembly file
 
Code generation directives:
ILDYNCALL Resolves calls dynamically at run time
ILNATIVE Exposes COBOL data items as native .NET types
ILSTATIC Exposes entry points as static methods for backward compatibility
ILTARGET Specifies the target CPU type
ILVERIFY Ensures that the compiled IL code is verifiable.
 
Reference and resource directives:
ILPINVOKE Makes the specified unmanaged code available
ILREF Makes the framework classes in the specified assembly available
ILRESOURCE Specifies a resources file to embed in the generated assembly
ILSOURCE Specifies additional source file to be compiled into the assembly
ILSUBSYSTEM Specifies the subsystem directive to ILASM
 
Strong naming directives:
ILDELAYSIGN Sets the DelaySign assembly manifest attribute
x ILKEYFILE Sets the KeyFile assembly manifest attribute
ILKEYNAME Sets the KeyName assembly manifest attribute
 
Identity, information and manifest directives:
ILCOMPANY Sets the Company assembly manifest attribute
ILCOPYRIGHT Sets the Copyright assembly manifest attribute
ILCULTURE Sets the Culture assembly manifest attribute
ILDESCRIPTION Sets the Description assembly manifest attribute
ILPRODUCT Sets the Product assembly manifest attribute
ILTITLE Sets the Title assembly manifest attribute
ILTRADEMARK Sets the Trademark assembly manifest attribute
ILVERSION Sets the Version assembly manifest attribute

Related Topics: