What is AL.exe?

AL.exe is the Assembly Linker. The Assembly Linker generates a file with an assembly manifest from one or more files that are either modules or resource files. A module is a Microsoft intermediate language (MSIL) file that does not have an assembly manifest.

The Problem

At the end of a code compilation in Visual Studio 2008, the AL.exe not found error occurs.

Where is the AL.exe?

The AL.exe tool is shipped with the .NET Framework SDK. So you will need to install it. You can download it here. Next, you need to determine where the file exists on the filesystem. This you can do by going to: Start => All Programs => Microsoft Visual Studio 2008 => Visual Studio Tools => Visual Studio 2008 Command Prompt.

Enter “Where al.exe” in the command prompt. The command will give you the path to the AL.exe on your machine.

The Solution

What need to be set is a global environment variable (ALTOOLPATH) that has the value for the AL.exe path on your machine. Why global? All sessions will be sharing it, simply set!
Go to Control Panel => System => Advanced System Settings => Environment Variables.
Add a new variable with the following info:
Key Value: {Path to AL.exe you got above EX: “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\”}

Reboot your machine, open Visual Studio 2008 and happy compiling.