title: Precompiling Web Application Project in VS WITHOUT Web Deployment Project?
body: <p>I want to precompile my entire ASP.NET Web Application Project inside Visual Studio 2010, mainly to make sure there are no errors in the pages and controls.</p>
  
  <p>How can I do this without using a Web Deployment Project?  I tried using a WDP, but it has a massively annoying bug that causes it to compile all files in the application folder, including files that have been "excluded."  It is maddening.</p>
  
  <p>To be clear, I understand how to compile my application in VS.  I also know how to deploy it.  What I want to know here is how to PRECOMPILE the entire application (including all ASPX and ASCX files) BEFORE deployment.  This is important to me because it is the only way to make sure there are no errors in the ASPX or ASCX files before runtime.  I understand that there are command-line tools for this.  I want to precompile inside VS, however, so that I can quickly correct any problems found.</p>
  
  <p>So is there another way to do it?  Is there some way to customize the Publish command?</p>
  
  <p>Really appreciate the help, as MS documentation on this subject is frustrating, repetitive, and far-flung.</p>
  
  <p>Brian</p>