TFS 2010 – Solving The Imported Project Microsoft.WebApplication.targets Was Not Found Error
I think I have actually seen this error in other versions of TFS besides 2010, but most recently saw it in 2010 deployment. Post-executing build configuration when running a build for something using Web Application projects you might receive the error:
The imported project “C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets” was not found
To solve this issue, just copy the C:\Program Files\MSBuild\Microsoft\Visual Studio\v10.0\WebApplications directory from a development machine to the build machine. Sucks but it works. Seems sporadic why it happens.
Related posts:
- Considerations When Using TFS for SharePoint And Silverlight Development
- Large SharePoint Components with Continuous Integration Cause Time Outs With Automated Builds
- TeamBuild – Error – Failure: unknown user name or bad password
- Solving SharePoint FullTextSqlQuery Wrong Site Collection Error
- Building COM Visible SharePoint Components Caused TFS Build Server Error
2 Comments »
RSS feed for comments on this post. TrackBack URL























Articles & Research
SharePoint Architecture
Research Methodology
Personal/Off-Topic
Article Or Research Filed Under 

Great information! I’ve been looking for something like this for a while now. Thanks!
Comment by Timmy — April 28, 2010 @ 9:17 pm
Maestro!!! excelente…. la unica solucion despues de varias horas de web-eo!!! Gracias
Comment by napilex — February 15, 2012 @ 6:19 pm