title: Telling TFS 2010 Build to use SDK 7.1
body: <p>I have installed TFS 2010 including Build Service on a Win Srv 2008 R2 machine, and it works - almost.</p>
  
  <p>What I can't seem to get going is the build using tools like <code>resgen.exe</code> from the Windows SDK - I get an error:</p>
  
  <blockquote>
    <p>c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets
    (1835):<br>
    Task could not find "Resgen.exe" using the SdkToolsPath
    "C:\Program Files (x86)\Microsoft
    SDKs\Windows\v7.0A\Bin\" or the
    registry key
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
    SDKs\Windows\v7.0A". 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</p>
  </blockquote>
  
  <p>OK, so I went and downloaded and installed the most recent Windows SDK - v7.1. Everything went fine, I now have a copy of <code>resgen.exe</code> present and all - but I am still getting the same error.</p>
  
  <p>OK, so I went and inspected the MSBuild targets file (<code>c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets</code>) mentioned in the error message - and I see it's using lots of references to <code>FrameworkSDKDir</code> and  <code>_TargetFrameworkSDKDirectoryItem</code> - but where are those values initially set (to an obviously wrong directory, in my case) ?? I can't seem to find the "core" targets file and tell it to use my <code>\SDKs\Windows\v7.1\Bin</code> directory (instead of the <code>\SDKs\Windows\v7.0A\Bin</code> it wants to find - there's nothing in there...)</p>