Main pages in an ASP.NET app (Master/ASPX/ASCS) are compiled with a reference to top level files. Common sense tells that you need to recompile anything if there is any change in bin assemblies or App_Code. However, this is not always the case, because not all changes have an effect on the entire application. In this article, I will give you a step by step guide on how to Optimize your ASP App Compilation1. Open your ASP project.
2. Open the web.config file of your project, and look for the compilation section:
3. In the compilation section add this code:
<compilation debug=”true” strict=”false” optimizeCompilations=”true”/>
4. Save your changes and that’s it!
Note: This optimization doesn’t affect the app domain shutdown behavior. The bin folder of you ASP application have several large DLL. When you make a build the DLL into the bin folder as a result of your module development, your whole development site will recompile (It will take from several seconds to more than a minute or so to do it). Adding this code prevents this. Only the affected files will be recompiled.
This concludes Optimizing your ASP App Compilation