Having problems building some of the Windows Vista SDK samples on an X64 machine?  This is the second in a series of workarounds to get you building (check out the first post).  There are more X64 tricks and tips to come, so stay tuned.  Have you found workarounds to other issues? Share them here or email me.

 2. (Managed) Error:  error MSB3011: "C:\Windows\Microsoft.NET\Framework\v2.0.50727\AL.exe" was not found. Either 1) Install the .NET Framework SDK, which will install AL.exe. Or 2) Pass the correct location of AL.exe into the "ToolPath" parameter of the AL task.

Problem:  This is a bug in the build environment.  (This issue has been fixed in the Windows SDK for Microsoft Windows Server code name “Longhorn” and .Net Framework 3.5.). Make sure you have updated SetEnv.cmd as described in Error 1 described in my first troubleshooting post.

Workaround:  In order to use AL.exe the ALToolPath parameter must be set and passed to msbuild. For the default install location, use the following command:
msbuild /p:ALToolPath="C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin

Karin Meier

Windows SDK Samples Program Manager