Visual Studio 2010 seems to insist on having this import in web application projects
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
What does this import give us and is it really required?
On a side note if you remove this import with a text editor Visual studio will re-add it.
The reason i am asking is when the project is compiled on a build server that target does nor exists because visual studio is not installed.
Contains entries for MSBuild
C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications
Use the publish option in VS 2010 to create a zip package that you can deploy on your server (MS Deploy)
read this: http://vishaljoshi.blogspot.com/2009/03/how-does-web-deployment-with-vs-10.html
What build server are you using?