12. May 2011 14:05
I’ve managed to get some time to look at a problem that started a while back after we upgraded a project to Visual Studio 2010, thankfully it was a relatively easy one to fix. But, I thought I’d post a resolution to it anyway, just in case.
During our daily build we kept getting the following error:
“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.”
To resolve the error, you need to create the folder structure (C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\) on the build server and copy the Microsoft.WebApplication.Build.Task.dll and Microsoft.WebApplication.targets files from your development machine to the new directory on the build server.
You should now get a successful build