TFS 构建失败 - 使用 SdkToolsPath 找不到任务 "AL.exe"

TFS Build Fails - Task could not find "AL.exe" using the SdkToolsPath

我在 Windows Server 2012 R2 中的 TFS 构建任务失败并引发如下所述的错误

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

按照建议从不同位置复制 AL.exe 并粘贴到 C:\Program Files (x86)... here 但它没有解决我的问题。

从 Microsoft 站点 and/or 安装 Windows SDK 配置 RegEdit。这应该有效

对于那里的任何人,如果您尝试将 Visual Studio 构建工具更新到更新版本,请确保 tfs 中的 "Build" 任务找到正确的 MSBuild 文件夹 - 如果运行构建的代理是旧的,它可能找不到新的 Visual Studio 构建工具。我刚刚在 "Build" 中将定位 MSBuild 的方法从 "Specyfic Version" 更改为 "Specyfic Path" 并指向新的 VS Build Tools