我正在尝试使用 CruiseControl.Net 和 MSBuild 设置构建服务器。但是,它失败并出现错误:
"C:\Builds\PremiumStore\checkout\PremiumStore.sln" (default target) (1) ->
"C:\Builds\PremiumStore\checkout\Web\PremiumStoreWeb.csproj" (default target) (37) ->
(ResolveComReferences target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(2151,5):
error MSB3091: Task failed because "AxImp.exe" was not found, or the correct Microsoft
Windows SDK is not installed.
The task is looking for "AxImp.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\v8.1A\WinSDK- NetFx40Tools-x86.`
You may be able to solve the problem by doing one of the following:
1. Install the Microsoft Windows SDK.
2. Install Visual Studio
3. Manually set
the above registry key to the correct location. 4) Pass the correct location into the
"ToolPath" parameter of the task.
[C:\Builds\PremiumStore\checkout\Web\PremiumStoreWeb.csproj]
同样的事情在我自己的机器上构建得很好,只是在服务器上不行。
我尝试在整个互联网上搜索解决方案,但找不到。如果可能的话,我不想在构建服务器上安装 Visual Studio。仅仅为了进行命令行构建而安装整个 IDE 有点过分了。我已在该服务器上安装了 Microsoft Build Tools 2013,但它似乎没有帮助。
我尝试按照错误消息的建议将路径放入注册表中,但这也不起作用。我还检查了注册表中指示的路径,aximp.exe 确实存在,但位于名为“NetFx 4.5.1 Tools”的子文件夹中。但是,将文件从此处复制到“bin”父文件夹似乎也没有帮助。
如果有帮助的话,我的构建服务器在 Windows Server 2012 上运行。
提前致谢。
他们推荐的第 1 步(“安装 Microsoft Windows SDK”)是正确的建议。安装微软Windows SDK http://www.microsoft.com/en-us/download/details.aspx?id=8279.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)