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.
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.
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.
If it helps, my build server runs on Windows Server 2012.
Thanks in advance.