Google Analytics İzleme

29 Nisan 2011

web.config'de optimizeCompilations ayarı

optimizeCompilations değeri True olursa sadece değişen dosyalar derleniyor. False olursa üst-düzey dosyalar değiştiğinde tüm site baştan derlenmektedir. Uygualama için küçük değişiklikler için gereksiz derlemeyi engellenmiş oluyor, 

optimizeCompilations

Optional Boolean attribute.

Specifies whether dynamic compilation will recompile an entire site if a top-level file is changed. Top-level files include the Global.asax file and all files in the Bin and App_Code folders. If True, only changed files are recompiled.

The default is False.

For more information, see Understanding ASP.NET Dynamic Compilation.




If you are using Windows Vista Service Pack 1 or Windows Vista Service Pack 2, install the hotfix for ASP.NET on IIS 7.0 (KB967535). This hotfix, which has already been installed on Windows 7, Windows Server 2008 Service Pack 2, and Windows Server 2008 R2, updates the ASP.NET common language runtime (CLR) to recognize a new option of optimizing compilations. To take advantage of this option, set theoptimizeCompilations property of the <compilation> tag in your web.config file to true:

 <compilation optimizeCompilations="true"> 

This change significantly improves the initial page load time after you have installed a solution to the bin directory.



Kaynak:

Hiç yorum yok: