Friday, November 25, 2011

MSBuild error related to missing Tracker.exe, AL.exe, LC.exe and so on

Today I got some frustrating error, when I've been setting up a new project on TeamCity and tried to run it:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1835, 9): error MSB3454: Tracker.exe is required to correctly incrementally generate resources in some circumstances, such as when building on a 64-bit OS using 32-bit MSBuild. This build requires Tracker.exe, but it could not be found. The task is looking for Tracker.exe beneath the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. To solve the problem, either: 1) Install the Microsoft Windows SDK v7.0A or later. 2) Install Microsoft Visual Studio 2010. 3) Manually set the above registry key to the correct location. Alternatively, you can turn off incremental resource generation by setting the "TrackFileAccess" property to "false".

It was a bit strange to see a reference to the Windows SDK v7.0A, because I was pretty sure that there is just v7.1 installed. Thanks to the stackoverwflow for the solution that I found very quickly. The first (and the only in my case) thing you need to do is to tell MSBuild to use the latest version of the Windows SDK installed:
  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
After this I was able to build project on the server without any problems.

2 comments:

  1. Worked for me, thanks.

    ReplyDelete
  2. Really is there any odes for human laziness i can't believe this.Well read latest pakistan urdu news with many of the blogs of famous writers and journalist which will boost your energy and finish your laziness.

    ReplyDelete