Solved

Build fails on TFS build server

Posted on 2010-09-13
9
2,183 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
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.
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…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

895 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

14 Experts available now in Live!

Get 1:1 Help Now