Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task could not find "AL.exe" using the SdkToolsPath

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.0 Tools\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed

I know there is a similar question, but the aswer didn't work for me

In the same computer a can build other solutions in Net 4 without any problem, so don't understand

I'm using: Windows XP Professional SP3 Visual Web Developer 2010 Express

like image 709
SebRojas Avatar asked Feb 07 '11 15:02

SebRojas


3 Answers

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\

like image 69
Noah Avatar answered Sep 22 '22 02:09

Noah


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!

like image 24
Bas Slagter Avatar answered Sep 20 '22 02:09

Bas Slagter


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.

like image 25
Mariusz Avatar answered Sep 21 '22 02:09

Mariusz