生成失败,因为找不到AL.exe [英] Failing Build because it can't find AL.exe

查看:355
本文介绍了生成失败,因为找不到AL.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个有趣的问题,确实让我挠头.我有一个正在TeamCity中构建的项目.直到开发人员将资源文件添加到带有另一个语言环境的字符串的项目中为止,它一直工作良好.他将.resx文件添加到了默认文件夹旁边的Properties文件夹下.这是构建日志中的错误消息:

Here's an interesting problem that really has me scratching my head. I have a project that's being built in TeamCity. It's been working fine until a developer added a resource file to one of the projects with some strings for another locale. He's added the .resx file under the Properties folder next to the default one. Here's the error message from the build log:

C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(2105, 9):
error MSB3091: Task failed because "AL.exe" was not found, or the correct
Microsoft Windows SDK is not installed. The task is looking for "AL.exe" in the "bin"
subdirectory beneath the location specified in the InstallationFolder value
of the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A.
You may be able to solve the problem by doing one of the following:
1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.
2) Install Visual Studio 2008.
3) Manually set the above registry key to the correct location.
4) Pass the correct location into the "ToolPath" parameter of the task. 

这里有些事情我无法解决. -为什么它可以找到默认.resx文件的AL.exe,却找不到这个新文件. -当构建在Server 2003上运行时,为什么要在看起来特定于Vista的注册表项中查找?

There are a number of things here that I can't work out. - How come it can find AL.exe for the default .resx file but not for this new one? - Why's it looking in a registry key that looks Vista-specific, when the build is running on Server 2003?

有什么想法吗?

推荐答案

通过为Windows Server 2008和.NET Framework 3.5 SP1安装Windows SDK解决了问题.

Problem solved by installing Windows SDK for Windows Server 2008 and .NET Framework 3.5 SP1.

我不了解MSBuild如何与它的工具脱节,也许我永远也找不到原因,但是安装该SDK可以解决我的问题.

I don't understand how MSBuild got out of step with its tools, perhaps I never will discover the reason, but installing that SDK fixed the problem for me.

这篇关于生成失败,因为找不到AL.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆