Visual Studio 2008/2010/ASP.NET: How to speed up t

2020-02-11 13:09发布

问题:

I like to detach my debugger while testing my changes or debugging issues that can be pinpointed by a simple strack trace. After I fix a bug, I build the solution and then refresh the page. There's that initial lag time that occurs after the rebuild before the web page displays. After that, it's as fast as it should be. I heard that the application is loading up all the new DLLs during this time.

Is there any way to reduce the amount of this lag?

回答1:

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

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

For asp.net version 3.5 must use this patch in order to work with this optimize switch. http://support.microsoft.com/kb/961884