I'm automating the build/deployment process of my web app. This includes the "publish"-step. (right-mouse on the web project -> publish).
The dialog presented is just a visual wrapper around the aspnet_compiler.exe.
quote from msdn:
"The ASP.NET Compilation tool enables you to compile an ASP.NET Web application, either in place or for deployment to a target location such as a production server. In-place compilation helps application performance because end users do not encounter a delay on the first request to the application while the application is compiled."
I ran the command, and to my surpise, I received an error:
"Could not load Type xxx"
This was unexpected, because the option in Visual Studio worked fine.
The caveat here is that there was a physical file present in the directory I specified, which was NOT part of the project.
The command I used had the -p and -v params (which is pretty common), and compiles ALL physical files.
So do a cleanup first!
Note1: there are no 3.x updates of the aspnet_compiler, you can just use the 2.0 version.
Note2: West Wind has created a visual tool to aid in generating the appropriate command.