Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is needed in the tfs 2010 build agent, to build .net 4.5 projects, in tfs 2008 we had to set the MSBuildPath property, but the configuration seems to be different in 2010.

I get the following error message. (614): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

How we handled it in 2008

share|improve this question
It seems it may Just Work -- are you seeing any errors when you attempt to build? – Russ Amos Aug 23 '12 at 12:06
That error message seems related to this issue around not having VS installed on the build machine. Have you tried the suggestions in that question? – Russ Amos Aug 23 '12 at 20:19
up vote 18 down vote accepted

It's not necessary to install Visual Studio 2012. Just copy the files in the following folder from a computer with VS2012 installed to your build server and it should work:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\

share|improve this answer
Confirmed this is true when VS 2010 was installed on the Build Machine -- that you can simply copy these v11 files. Not sure if it would still work if VS2010 wasn't previously installed. – kingdango Nov 9 '12 at 3:22
This will work for everything but SQL project support. This requires a whole bunch of hoop jumping (installing the SQL Data Tier Framework etc etc - all in all its a similar sized install). it might be worth considering installing VS 2012 anyway. – Doug Jul 14 '13 at 23:21
Would it not work if you were to install the MS Build Tools (listed under Downloads > Additional Software on, link: – mstaessen Apr 29 '15 at 14:09

You just need to install Visual Studio 2012 and you will be good to go.

share|improve this answer
We have never had to do that before, I would prefure not to install visual studio on the build servers. Does it have to be installed on all of the build agents as well. – JustEngland Aug 29 '12 at 0:25
what if my server is Server 2008 (NOT R2) and doesn't let me install either the Windows 8 SDK or VS2012 – Simon Sep 7 '12 at 6:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.