ECN-4601 Locating the .NET development tools

Incidents: 3141086

RPI Number: 1112915

Product: ACUCOBOL-GT

Module: Compiler

Machines Affected: Windows

Known Versions Affected: All

DESCRIPTION:

Microsoft no longer distributes its .NET development tools to the location that extend expects; therefore, the compiler now contains options for assisting in locating the .NET development tools (al.exe, ilasm.exe) when compiling with the .NET options --netdll, --netdlld, and --netexe.

Firstly, the compiler will look in the registry for the location of the .NET development tools, and you can use a new compiler option to set that value in the registry:

ccbl32 --NETToolsDir=<\path\to\.NET\tools>

If the required registry value does not exist, the compiler will first look in the old location (C:\Windows\Microsoft.NET\Framework\v2.0.50727), and then will examine the PATH environment variable. If the compiler fails to find the tools using any of these methods, then the compile will fail.

You only need to set this option once for each version of the compiler used, because each generated registry key is version specific. To change the directory for the .NET development tools, simply run the option again.

If, for some reason, you need to remove the registry value, you can use the following new option:

--ccbl32 --resetNETToolsDir 
Note: These new options are not available in AcuBench (since they only need to be used once).