Task failed because AL.exe was not found,

后端 未结 8 1983
暗喜
暗喜 2020-12-31 06:16

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

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 07:02

    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.

提交回复
热议问题