Share via


Precompile ASP.NET Web Sites

ASP.NET 2.0 supports two modes of pre-compilation: in-place precompilation and precompilation for deployment.

In-place precompilation allows for the batch-compilation of all the pages in your Web site. This is similar to how ASP.NET responds when someone requests a page within your application for the first time. There are two important advantages to in-place precompilation. First, it eliminates the performance hit of batch compiling when the first page is requested. Second, it helps you find compilation errors before users do. Once precompiled, requests for pages within the Web site should be fulfilled immediately, without any compilation lag.

Precompilation for deployment creates an executable version of your Web site that can be deployed without any source code. By using this mode of precompilation, you can prevent access to the intellectual property represented by your source code.

Setting Precompilation options in Visual Studio Team System.