Tuesday, April 22, 2008

ASP.NET Web Site Compilation

The ASP.NET Compilation tool (Aspnet_compiler.exe) enables you to compile an ASP.NET Web application, either in place or for deployment to a target location such as a production server. In-place compilation helps application performance because end users do not encounter a delay on the first request to the application while the application is compiled.
Compilation for deployment can be performed in one of two ways: one that removes all source files, such as code-behind and markup files, or one that retains the markup files.

There is no aspnet_compiler in .NET 3.5 because .NET 3.5 does not include ASP.NET. The latest version of ASP.NET was released as a part of the .NET Framework 2.0; howerver, since .NET 2.0 is a subset of the .NET Framework 3.5, you will find the aspnet_compiler in the same directory (%WINDIR%\Microsoft.NET\Framework\v2.0.50727\).