Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the advantage of the ASP.NET precompilation?

How useful is it to use Aspnet_compiler.exe instead of conventional Publish via Visual Studio? And what about resource (resx) files?

like image 592
Bastien Vandamme Avatar asked Jan 08 '10 12:01

Bastien Vandamme


People also ask

What does Precompile during publishing do?

The default (checked) setting of "Allow precompiled site to be updateable" allows you to update your view content without needing to rebuild the entire project.


1 Answers

Precompilation, as opposed to simple xcopy gives you two main advantages:

  1. The filesystem will not have all the code in .aspx files and all the code behind is compiled into an assembly.

  2. There is no ASP.NET compilation delay the first time you visit a page after the server starts up.

Having said that, my precompilation knowledge is a bit rusty these days, last time I touched it was a while back.

like image 108
Igor Zevaka Avatar answered Nov 15 '22 03:11

Igor Zevaka