Task could not find “AL.exe” using the SdkToolsPath

前端 未结 4 741
逝去的感伤
逝去的感伤 2020-12-10 11:55

I have this problem tring to build one solution

Task could not find \"AL.exe\" using the SdkToolsPath \"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX

相关标签:
4条回答
  • 2020-12-10 12:31

    Do you have any resource files in your project? Try to delete all of them and build your project again. I've got exact the same error and after deleting the resource files (*.hrsx) my build worked again.

    Maybe it helps.

    0 讨论(0)
  • 2020-12-10 12:44

    Easiest thing to do is copy al.exe
    from
    C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\NETFX 4.0 Tools\
    (For Windows 10 from
    C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools)

    to
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\

    0 讨论(0)
  • 2020-12-10 12:45

    As I got this issue in VS2019 after a fresh install of both Windows and Visual Studio 2019 I thought it might be good to share:

    Installing Microsoft.Net.Component.4.7.2.SDK from the Visual Studio installer fixed it for me!

    0 讨论(0)
  • 2020-12-10 12:56

    I am using VS2019, this way works for me:

    Add a system env variable TargetFrameworkSDKToolsDirectory

    like this:
    TargetFrameworkSDKToolsDirectory=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools

    0 讨论(0)
提交回复
热议问题