【发布时间】:2014-02-17 20:59:07
【问题描述】:
我正在尝试使用 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]
同样的东西在我自己的机器上构建得很好,只是在服务器上不行。
我已尝试在整个 Internet 上搜索解决方案,但找不到。如果可能的话,我宁愿不必在构建服务器上安装 Visual Studio。安装整个 IDE 只是为了进行命令行构建有点矫枉过正。我已经在该服务器上安装了 Microsoft Build Tools 2013,但它似乎没有帮助。
我已尝试按照错误消息的建议将路径放入注册表,但这也不起作用。我还检查了注册表中指示的路径,并且 aximp.exe 确实存在,但在一个名为“NetFx 4.5.1 Tools”的子文件夹中。但是,将文件从这里复制到“bin”父文件夹似乎也无济于事。
如果有帮助,我的构建服务器可以在 Windows Server 2012 上运行。
提前致谢。
【问题讨论】:
标签: asp.net-mvc-4 visual-studio-2012 msbuild windows-server-2012