how to speed up and optimize compiler build of asp.net site when debugging

前端 未结 1 1513
余生分开走
余生分开走 2020-12-18 13:42

Visual Studio 2008/2010/ASP.NET:

How to speed up the delay after rebuilding the solution?

I like to detach my debugger while testing my changes or debugging is

相关标签:
1条回答
  • 2020-12-18 14:19

    You can set the optimizeCompilations to true, and batch to false

    <compilation batch="false" optimizeCompilations="true" ... >
    

    batch=false says to asp.net to build if necessary only the page that you call. We set batch to true, only on release live site to so the asp.net compiles many pages at ones, and you may have a big delay but only ones...

    The optimizeCompilations=true says that each page is not check for libraries updates each time its runs. This have a minor issue - if you change a global static function for example that is called from 4 pages, this 4 pages did not know that this function change, so you need to just open them and saved them, to force compiler to re-compile them. Or else they throw error because they did not check if something change - you must know that and updates them to force the re-compile.

    reference : CompilationSection Class

    0 讨论(0)
提交回复
热议问题