Task not found "AxImp.exe"

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

Project "D: \ Temp \ cbymsn2u.j0c \ input \ UI \ tray \ Tray.csproj" builds "D: \ Temp \ cbymsn2u.j0c \ input \ Business \ Crawler \ Crawler.csproj" (GetNativeManifest Target): C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (1558.9): warning MSB3084: task completed, find "AxImp.exe" in two places. 1) In the section "C: \ Program Files \ Microsoft SDK \ Windows \ v7.0A \ bin \ NETFX 4.0 Tools \" the processor-specific directory is created based on SdkToolsPath 2) The x86 specification in the section "C: \ Program Files \ Microsoft SDK \ Windows \ v7.0A \ bin \ NETFX 4.0 Tools \ ", which are defined 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: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (1558.9): Error MSB3086: the task could not find "AxImp.exe" using SdkToolsPath "C: \ Program Files \ Microsoft SDK \ Windows \ v7.0A \ bin \ NETFX 4.0 Tools \ "or the registry key" HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDK \ Windows \ v7.0A ". Make sure that SdkToolsPath is installed and that the tool exists in the correct processor for the specific location within SdkToolsPath and that the Microsoft Windows SDK has the Done construction project "Tray.csproj" installed - FAILED.

Crawler.csproj doesn't seem to have any different links, where would this error come from? The same code builds locally locally.

+8
c # appharbor
source share
1 answer

He looked where the tool should be installed, c: \ Program Files \ Microsoft SDK \ Windows \ v7.0A \ bin \ NETFX 4.0 Tools \ AxImp.exe is the usual place. You can check it out on your machine. I don’t know exactly what AppHarbor does, but the chances are that they intentionally deleted this tool.

There is very little hope of running AxImp.exe on a remote build server; the ActiveX component will not be installed on this machine. You will need to run AxImp.exe on your workstation, you only need to do this once. Add the two assemblies that it creates in your project, interop.foo.dll and axinterop.foo.dll. Set the Copy Local property to true.

If you are actually going to run your application on this remote machine, then stop right now, the ActiveX control will not be installed on this machine. When installing it, a miracle or two should happen.

+11
source share

All Articles