[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2223
  • Last Modified:

Build fails on TFS build server

I am completely new to tfs, but after seeing the promises that 2010 was so much easier to use, I decided to give it a try.  I am however now having problems getting the build to work.  On my development maching my app builds correctly. However on the build machine I get the following error.

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1835): Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "resgen.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\v7.0A. You may be able to solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK.  2) Install Visual Studio 2010.  3) Manually set the above registry key to the correct location.  4) Pass the correct location into the "ToolPath" parameter of the task.

I have cheched the folders mentioned in the message and resgen.exe is installed in that folder.  I have also installed VS2010 on the build computer, even though by my understanding it should not be needed, but still this message.

Has anyone else experienced this message, and what was the fix?


Thanks
0
townsma
Asked:
townsma
  • 5
  • 4
1 Solution
 
Gautham JanardhanCommented:
you should not have VS installed in a build machine. as the message suggests do you have windows sdk installed in the build server ?
0
 
Gautham JanardhanCommented:
and which flavour of TFS 2010  you are using (Beta,RTM...)
0
 
Gautham JanardhanCommented:
And can you post your TFSBuild.proj file :-)..
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
townsmaAuthor Commented:
To begin with I did not have VS2010 installed on the build server, I only installed it as the messages suggested trying that.

Initially I did not have SDK on the build server, but again, when I received the error message I tried to install it.

The TFS is the latest version from the Microsoft website, downloaded within the last two weeks.

0
 
townsmaAuthor Commented:
Not sure where that file is, but can try to find it.  I created the build using the forms provided in TFS 2010.

0
 
Gautham JanardhanCommented:
ohh i forgot you are using TFS2010.. in there we wont have proj files.. is the solution you are building built on 3.5 or lower ? if so then this is a know bug in TFS2010
0
 
townsmaAuthor Commented:
Yes, built on 3.5. Was a bit worried to upgrade to 4. Is there a workaround for this bug, or do I have to upgrade to 4.  I am afraid of breaking changes between the versions of framework.
0
 
Gautham JanardhanCommented:
you need to install WinSDK on the build server. and you can uninstall VS2010 as it is not required. Not sure whether this will work or not as i find many get errors even after this. and this is the only known work around. If it does not work we will need to upgrade to 4.0 or wait for a fix from MS
0
 
townsmaAuthor Commented:
OK, will do as you say, and let  you know how I get on.  Thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now