Export (0) Print
Expand All

.NET Compilation

Published: February 29, 2012

Updated: February 29, 2012

Applies To: Windows Server 2012, Windows Server 2012 R2



Use the .NET Compilation properties page to manage ASP.NET application code configuration settings.

Use the Display list to select one of the following options that specifies how the settings are displayed: Friendly Names, Configuration Names, or Both Names.

Related scenarios

The following tables describe the UI elements that are available on the feature page and in the Actions pane.

 

Element Name Description

Batch Compilations

Indicates whether batch processing is supported. The default is true.

Maximum File Size

Specifies the maximum size, in kilobytes, of the generated source files per batched compilation. The default is 1000 KB.

Maximum Size of Batch

Specifies the maximum number of pages per batched compilation. The default is 1000.

Time-out (hh:mm:ss)

Indicates the time-out period for batch compilation. If compilation cannot be completed in the time-out period, the compiler reverts to single compilation mode for the current page. The default is 00:15:00 (15 minutes).

Debug

Specifies whether release or debug binaries are used for compilation. When true, debug binaries are used for compilation. The default value is false.

Enable Prefetch

Enables ASP.NET to take advantage of Windows Prefetch functionality. The default value is false.

noteNote
The Windows Prefetch service must be configured and running for this setting to take effect.

Enable Profiling Optimizations

Specifies profiling optimizations enabled for managed assemblies using idle CPU cores. Allowed values are All or None. The default value is All.

Number of Recompiles

Indicates the number of dynamic recompiles of resources that can occur before the application restarts. The default is 15.

Optimize Compilations

Specifies whether dynamic compilation will recompile an entire site if a top-level file is changed. The default value is false.

Url Line Pragmas

Specifies whether instructions to the compiler use physical paths or URLs. When true, URLs are used for the compiler instructions instead of physical paths. The default value is false.

Explicit Compile Option

Specifies whether to set the Microsoft Visual Basic explicit compile option. If True, all variables must be declared by using a Dim, Private, Public, or ReDim statement. The default is True.

Strict Compile Option

Specifies whether to enable the Visual Basic strict compile option. When True, compilation explicitly disallows any data-type conversions in which data loss would occur, and any conversion between numeric types and strings. The default value is False.

Assemblies

Defines the set of assemblies, from the \bin folder or from the Global Assembly Cache (GAC), which is referenced during compilation. The GAC stores .NET assemblies that are designated to be shared by several applications on the computer. Use an asterisk ("*") to include every assembly in the directory.

Default Language

Specifies the default programming language, such as C# or Visual Basic, to use in dynamic compilation files. The default programming language is vb, which specifies Visual Basic as the default programming language.

Code Sub Directories

Defines subdirectories that contain files that are compiled at run time. You can have any number of subdirectories.

Temporary Directory

Specifies the directory to use for temporary file storage during compilation. The default is an empty string that puts temporary files in a location under the Temporary ASP.NET Files directory.

 

Element Name Description

Apply

Saves the changes that you have made on the feature page.

Cancel

Cancels the changes that you have made on the feature page.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft