0

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.

James Z
  • 12,209
  • 10
  • 24
  • 44
Aditya Prasad
  • 212
  • 1
  • 2
  • 11

2 Answers2

0

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

Shalem
  • 1,446
  • 2
  • 22
  • 47
0

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

J. Krz
  • 56
  • 4