Error MSB4019: 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

Posted by Tim Huffam on Geeks with Blogs See other posts from Geeks with Blogs or by Tim Huffam
Published on Wed, 08 Dec 2010 19:46:27 GMT Indexed on 2010/12/09 22:14 UTC
Read the original article Hit count: 465

Filed under:

This error occurred on our TFS2008 build server which we had upgraded to cater for VS2010 projects (by installing VS2010 on the build server - see this article).

Error MSB4019: 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.

However - although we had installed VS2010 on the build server - we had not installed the web development components (Visual Web Developer) - this is what caused the error.

To fix - simply add the web development components:

  1. Go into Control Panel - Add or Remove Programs
  2. Select Microsoft Visual Studio 2010, and click on Change/Remove
  3. In the VS Maintenance Mode screens, select Add or Remove Features
  4. In the Setup - Options page make sure 'Visual Web Developer' is checked.
  5. Click on Update.

 

You shouldn't need to restart your build service.

HTH
Tim
 

© Geeks with Blogs or respective owner