When you create Web sites and Web applications (both referred to as Web applications from this point) using Visual Studio it is a good idea to also use Web Deployment Projects (WDP) to assist in the deployment of them. WDP is not installed by default with Visual Studio, but is an add-in that you can download for free. You can download it by going to http://www.microsoft.com/downloads and searching for WDP. The page name should be listed as "Visual Studio® 2008 Web Deployment Projects." This add-in is supported by Microsoft, and you are encouraged to use it.
The following is a list of features that are provided with the WDP.
Automatic precompilation with the build process
WDP files are MSBuild files, so they are extensible ...