ILCLR

Allows a managed program to be compiled for Microsoft's Common Language Runtime (CLR) version 2.0 (deprecated[3]) or 4.0.

Restriction: This directive is supported for .NET COBOL only.

Syntax:

>>-------ILCLR-"number"-----><

Parameters:

number
The version of CLR that can support the compiled program.
2 (deprecated[3]) Compiles the program for CLR 2.0. Use ILCRL(2) for .NET Framework 3.5 or earlier.
4 Compiles the program for CLR 4.0. Use ILCLR(4) for .NET Framework 4.
Note: Support for .NET Framework versions 3.0 and 3.5, and for the CLR v2 has been deprecated[3]. The option 2 of the ILCLR directive has also been deprecated.

Properties:

Default: 4
$SET INITIAL
IDE equivalent: Click Project > Properties > Application > Target Framework