This is one thing that we were missing from our requirements to fully make use of VS 2008.

Web Deployment Projects pre-compile your web application projects, can remove files that aren’t needed on the production web server, and as a side-effect of compiling the .aspx pages too, can find some syntax errors that don’t get noticed by the normal VS compiler.

Watch out for this bug though.