Monday, February 11, 2013

Setting up a build machine

We are setting up a build machine to do CI (Continuous Integration) builds using BuildMaster.  Some of our code is 4.0 .NET and we kept getting MSBuild errors.  Installed various SDK's, etc. with no luck.  Turns out Microsoft still hasn't fixed this as I saw it many years ago with other frameworks.
The error is:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(2836,5): error MSB3086: Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". 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
A coworker of mine did some digging and found a cleaner way to get this setup instead of hacking the registry by hand.

Changing sdk version

  1. Go to "Microsoft Windows SDK v7.1" from the Start menu
  2. Select "Windows SDK 7.1 Command Prompt" and enter
  3. > cd Setup
  4. > WindowsSdkVer -version:v7.1

No comments:

Post a Comment