Solved

Build fails on TFS build server

Posted on 2010-09-13
9
2,199 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

730 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