I\'m getting the following error when compiling my project:
Task failed because "AL.exe" was not found, or the correct Microsoft Windows SDK is
Unload your project and then edit your .csproj file you will see an import Task
MSBuildBinPath = "C:\WINDOWS\Microsoft.NET\Framework\v3.5" if ur project is targetting .Net 3.5
then go to
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets file
open this file in notepad and search for AL task and you will get something like this
Note that I chnaged the ToolPath to the location where AL exist on my machine.
By default it uses $(AlToolPath), Not sure what is the value of this property but i am sure if you are getting this error it is not pointing to correct location
So in simple words AL task can't find AL.exe and when you edit it and provide it ToolPath value you help him to locate it.
Hope this explains you why you are getting this error message.