After upgrading a client’s environment from TFS 2008 to TFS 2010, the build server started to produce failing builds. Looking through the build log I noticed following error:
“The imported project “C:\Program Files\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.”
Solving this issue is easy. Just copy the v10.0\WebApplications\Microsoft.WebApplication.targets files from your local machine to the directory reported in the error. On your local system you’ll probably find this target file at C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets
All builds were green again…