"任务失败,因为AXImp.exe没有找到与QUOT;使用的MSBuild 12建立一个MVC 4.0项目时 [英] "Task failed because AXImp.exe was not found" when using MSBuild 12 to build a MVC 4.0 project

查看:2321
本文介绍了"任务失败,因为AXImp.exe没有找到与QUOT;使用的MSBuild 12建立一个MVC 4.0项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置使用CruiseControl.Net和的MSBuild构建服务器。然而,它的失败与错误:

I am trying to set up a build server using CruiseControl.Net and MSBuild. However, it's failing with the error:

 "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]

同样的事情建立优良我自己的机器上,只是没有在服务器上。

The same thing builds fine on my own machine, just not on the server.

我试图寻找在互联网上的解决方案,但无法找到一个。如果可能的话,我会preFER不具有对构建服务器上安装Visual Studio。这是一种矫枉过正安装整个IDE只是做命令行构建。我已经安装了微软构建工具2013服务器上,但它似乎并没有帮助。

I've tried searching all over the Internet for a solution but is unable to find one. If possible, I'd prefer not to have to install Visual Studio on the build server. It's kind of overkill to install an entire IDE just to do command line builds. I've installed the Microsoft Build Tools 2013 on that server but it does not seem to help.

我试图把路径到注册表的错误消息的建议,但是这也不能工作。我还检查注册表中的指示的路径和aximp.exe的确是present,但在一个名为NETFX 4.5.1工具子文件夹。然而,从这里上一级的bin的父文件夹复制文件似乎不帮助的。

I've tried to put in the path into the registry as suggested by the error message, but that didn't work either. I've also checked the path indicated in the registry and the aximp.exe is indeed present, but in a subfolder called "NetFx 4.5.1 Tools". However, copying the files from here one level up to the "bin" parent folder does not appear to help either.

如果有帮助,我的构建服务器的Windows服务器上运行2012

If it helps, my build server runs on Windows Server 2012.

先谢谢了。

推荐答案

他们推荐的步骤1中的事情(安装Microsoft Windows SDK)是正确的建议。安装的Microsoft Windows SDK

The thing they recommend as step 1 ("install the Microsoft Windows SDK") is the correct advice. Install the Microsoft Windows SDK.

这篇关于"任务失败,因为AXImp.exe没有找到与QUOT;使用的MSBuild 12建立一个MVC 4.0项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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