任务找不到“AxImp.exe" [英] Task could not find "AxImp.exe"

查看:30
本文介绍了任务找不到“AxImp.exe"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向 appharbor 上传了一个 .NET 4 C# 解决方案,但是当 appharbor 尝试构建它时,其中一个 c# 类库会生成此错误:

I uploaded a .NET 4 C# solution to appharbor, however when appharbor tries to build it, one of the c# class libraries generates this error:

项目D: empcbymsn2u.j0cinputUITrayTray.csproj"正在建设D: empcbymsn2u.j0cinputBusinessCrawlerCrawler.csproj"(GetNativeManifest 目标):c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1558,9):警告 MSB3084:任务试图在两个位置找到AxImp.exe".1)在C:Program FilesMicrosoftSDKsWindowsv7.0AinNETFX 4.0工具"处理器特定目录这是基于SdkToolsPath 2) x86 特定C:Program"下的目录文件微软SDKsWindowsv7.0AinNETFX 4.0工具",由SDKToolsPath 属性.你也许可以通过执行以下操作之一来解决问题如下: 1) 设置SDKToolsPath"属性到Microsoft Windows SDK 的位置.c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1558,9):错误 MSB3086:找不到任务AxImp.exe"使用 SdkToolsPath"C:Program FilesMicrosoftSDKsWindowsv7.0AinNETFX 4.0工具"或注册表项"HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoftSDKsWindowsv7.0A".确保SdkToolsPath 已设置,工具存在于正确的处理器中具体位置在SdkToolsPath 和 MicrosoftWindows SDK 安装完成构建项目Tray.csproj"——失败.

Project "D: empcbymsn2u.j0cinputUITrayTray.csproj" is building "D: empcbymsn2u.j0cinputBusinessCrawlerCrawler.csproj" (GetNativeManifest target(s)): c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1558,9): warning MSB3084: Task attempted to find "AxImp.exe" in two locations. 1) Under the "C:Program FilesMicrosoft SDKsWindowsv7.0AinNETFX 4.0 Tools" processor specific directory which is generated based on SdkToolsPath 2) The x86 specific directory under "C:Program FilesMicrosoft SDKsWindowsv7.0AinNETFX 4.0 Tools" which is specified by the SDKToolsPath property. You may be able to solve the problem by doing one of the following: 1) Set the "SDKToolsPath" property to the location of the Microsoft Windows SDK. c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1558,9): error MSB3086: Task could not find "AxImp.exe" using the SdkToolsPath "C:Program FilesMicrosoft SDKsWindowsv7.0AinNETFX 4.0 Tools" or the registry key "HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SDKsWindowsv7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed Done building project "Tray.csproj" -- FAILED.

在 Crawler.csproj 中似乎没有任何不同的引用,那么这个错误是从哪里来的?相同的代码在本地构建良好.

There don't seem to be any different references in Crawler.csproj so where would this error come from? The same code builds fine locally.

推荐答案

它查看了该工具应该安装的位置,c:Program FilesMicrosoft SDKsWindowsv7.0AinNETFX 4.0 ToolsAxImp.exe 是正常位置.您可以在自己的机器上验证这一点.我不知道 AppHarbor 究竟做了什么,但很有可能他们有意删除了该工具.

It looked where the tool is supposed to be installed, c:Program FilesMicrosoft SDKsWindowsv7.0AinNETFX 4.0 ToolsAxImp.exe is the normal location. You can verify this on your own machine. I don't know exactly what AppHarbor does but the odds are good that they intentionally removed that tool.

在远程构建服务器上运行 AxImp.exe 的希望很小,ActiveX 组件不会安装在该机器上.您需要在自己的工作站上运行 AxImp.exe,只需执行一次.将它生成的两个程序集添加到您的项目中,interop.foo.dll 和 axinterop.foo.dll.将他们的 Copy Local 属性设置为 true.

There's is very little hope of running AxImp.exe on a remote build server, the ActiveX component isn't going to be installed on that machine. You'll need to run AxImp.exe on your own workstation, it only has to be done once. Add the two assemblies it generates to your project, interop.foo.dll and axinterop.foo.dll. Set their Copy Local property to true.

如果您确实打算在该远程机器上运行您的应用程序,请立即停止,该机器上不会安装 ActiveX 控件.安装它应该需要一两个奇迹.

If you actually intend to run your app on that remote machine then stop right now, the ActiveX control isn't going to be installed on that machine. Getting it installed ought to take a miracle or two.

这篇关于任务找不到“AxImp.exe"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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