TFS Build: "Microsoft.WebApplication.targets" was not found. - TFS & Visual Studio ALM - by Neno Loje

TFS & Visual Studio ALM - by Neno Loje

(formerly Team System, VSTS)

News

Recent Posts

Community

Tags

Email Notifications

VSTS Blogs

VSTS Community

My Other Blogs

German VSTS Websites

Archives

TFS Build: "Microsoft.WebApplication.targets" was not found.

You receive the following error message as build result:

The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

image

Solution

  • Install Visual Studio on the build server (make sure to check the "Visual Web Developer" component).

Note: Although it might seem strange to install an IDE on a build server it is required for additonal functionality, e.g. Code Coverage only works with VS Premium or above.

(Thanks to my MVP college Anthony for the solution)

Comments

Deepak said:

Hi

I am already having visual studio installed on my build server still i am facing same problem.Please let me know the solution its urgent.

er.deepak.garg22@gmail.com

# February 2, 2011 10:27 PM