Solved

Build fails on TFS build server

Posted on 2010-09-13
9
2,203 Views
Last Modified: 2013-11-07
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
Comment
Question by:townsma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 33669470
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
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 33669480
and which flavour of TFS 2010  you are using (Beta,RTM...)
0
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 33669498
And can you post your TFSBuild.proj file :-)..
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 6

Author Comment

by:townsma
ID: 33669499
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
 
LVL 6

Author Comment

by:townsma
ID: 33669503
Not sure where that file is, but can try to find it.  I created the build using the forms provided in TFS 2010.

0
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 33669580
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
 
LVL 6

Author Comment

by:townsma
ID: 33669603
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
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
ID: 33669620
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
 
LVL 6

Author Comment

by:townsma
ID: 33669669
OK, will do as you say, and let  you know how I get on.  Thanks
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question