0
votes

My TFS Build task in Windows Server 2012 R2 fails throwing the error as stated below

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (2863, 5) Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". 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

Copied AL.exe from different location and pasted in C:\Program Files (x86)... as suggested here but it didn't solve my issue.

2
Did you try this - Installing SDK stackoverflow.com/questions/2986440/…Shalem
No..Let me try and updateAditya Prasad
I've installed SDK from here but still i dont see - WinSDK-NetFx40Tools-x86 in Registry microsoft.com/en-us/download/details.aspx?id=34860Aditya Prasad

2 Answers

0
votes

Install the Windows SDK from Microsoft site and/or configure RegEdit. This should work

0
votes

For anyone out there, if you ware trying to update your Visual Studio Build Tools to newer version, make sure that "Build" task in tfs finds proper MSBuild folder- if agent that runs the build is old, it might not find new Visual Studio Build Tools. I just changed method of locating MSBuild from "Specyfic Version" to "Specyfic Path" in "Build" and pointed to new VS Build Tools