Solved

Build fails on TFS build server

Posted on 2010-09-13
9
2,175 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
  • 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
 
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now