这是一个有趣的问题,让我感到困惑。我有一个在TeamCity中构建的项目。一切都很正常,直到一个开发人员向其中一个项目添加了一个资源文件,并在其中添加了另一种语言的字符串。他将.resx文件添加到默认文件旁边的Properties文件夹中。以下是构建日志中的错误消息:
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,但是对于这个新文件却找不到? - 为什么它在查找看起来只适用于Vista的注册表键时,构建却在Server 2003上运行?
有任何想法吗?