Name

<compilation>

Synopsis

<compilation
   batch=boolean
   batchTimeout=numSeconds
   debug=boolean 
   defaultLanguage=languageAlias
   explicit=boolean 
   maxBatchSize=maxPages
   maxBatchGeneratedFileSize=maxSize
   numRecompilesBeforeAppRestart=numRecompiles
   strict=boolean
   tempDirectory=dirName >
   <compilers>
      <compiler language=languageAlias
         extension=fileExt
         type=typeName 
         warningLevel=number 
         compilerOptions=optionString />
   </compilers>
   <assemblies>
      <add assembly=assemblyName />
      <remove assembly=assemblyName />
      <clear />
   </assemblies>
</compilation>

Provides attributes and child elements for configuring the compilation options of ASP.NET applications. All attributes are optional.

Scope

Any

Attributes

batch

Specifies whether ASP.NET should attempt to batch compile all pages in the application when the first request for a page is made. The default is True.

batchTimeout

Specifies the amount of time, in seconds, that the compiler will spend attempting to batch compile pages in the application. If the timeout is exceeded, pages will be compiled as they are requested for the first time. The default is 15.

debug

Specifies whether pages will be compiled with debug symbols. The default is False.

defaultLanguage

Specifies the language compiler that will be used to compile inline code in ASP.NET pages for which no language is specified. The default is VB (Visual Basic .NET).

explicit

Specifies whether the Visual Basic .NET Option Explicit compiler option is enabled. The default is True.

maxBatchSize

Specifies ...

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.