Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T.

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
 

Posted on Wednesday, December 8, 2010 1:46 PM C# .NET , ASP.NET , Web Development, JavaScript & CSS , Dev Env, TFS, MSBuild etc | Back to top


Comments on this post: 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 declaration is correct, and that the file exists on disk

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net