Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

TFS2010 Build fails with failure to locate Tracker.exe


Symptoms

When building from Team Build 2010, you getting the following message:

<drive>:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1835): 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".

* You have Windows SDK 7.1 already installed.
* This machine does not have Visual Studio 2010 installed.

↑ Back to the top


Cause

GenerateResource in Visual Studio 2010 finds Tracker.exe using the ToolLocationHelper API which hard-codes the registry locations to look in to point to the Windows SDK 7.0A values.

↑ Back to the top


Resolution

1. You short-circuit that lookup instead by setting the ResGenTrackerSdkPath property to the 7.1 .NET 4.0 tools location. In the build definition, under "MSbuild Arguments", you can add the following:

/p:ResGenTrackerSdkPath="<drive>:\Program Files (x86)\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools"

OR


2. Install Visual Studio 2010.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2643427
Revision : 1
Created on : 1/7/2017
Published on : 11/10/2011
Exists online : False
Views : 230