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 http://blogs.msdn.com/b/willbar/archive/2009/11/01/building-net-4-0-applications-using-team-build-2008.aspx


2 Answers 2


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\

  • 1
    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, 2012 at 3:22
  • 1
    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, 2013 at 23:21
  • Would it not work if you were to install the MS Build Tools (listed under Downloads > Additional Software on visualstudio.com, link: go.microsoft.com/?linkid=9832060)?
    – mstaessen
    Apr 29, 2015 at 14:09

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

  • 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. Aug 29, 2012 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, 2012 at 6:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .