How to Publish Web Site with Visual Web Developer Express 2008
Apr 19th, 2009 by ocvirek.com
There’s a simple and effective way to precompile your ASP.NET application in desired folder prior to publishing it (e.g. uploading to web server via FTP):
C:\Windows\Microsoft.Net\Framework\v2.0.50727\aspnet_compiler.exe -v /WEBSITENAME -p “C:\Projects\WebSiteSource” “C:\Projects\WebSitePublished”
And, as you probably already know, adding any other uncompiled files to this precompiled version (e.g. uncompiled user controls .ascx meant to be loaded dynamically via LoadControl), you have to change attribute updatable to true in PrecompiledApp.config file:
<precompiledApp version=”2″ updatable=”true”/>.
Hope this helps. Cheers.