System.Web.Compilation.PrecompilationFlags Enumeration

Provides flags that determine precompilation behavior.

Syntax

[System.Flags]
public enum PrecompilationFlags

Remarks

The PrecompilationFlags class defines the behavior of the build manager during precompilation. The System.Web.Compilation.ClientBuildManager class takes PrecompilationFlags as one of its constructor parameters. Precompilation can be performed programmatically through System.Web.Compilation.ClientBuildManager or through the Aspnet_compiler.exe command-line tool.

Members

Member NameDescription
AllowPartiallyTrustedCallers

An System.Security.AllowPartiallyTrustedCallersAttribute attribute is generated for the assemblies, which means the assemblies can be called by partially trusted code. The /aptca flag will be added as a compilation symbol.

Clean

The application will be built "clean": Any previously compiled components will be recompiled. This field corresponds to the -c switch on Aspnet_compiler.exe.

CodeAnalysis

The /define:CodeAnalysis flag will be added as a compilation symbol.

Default

The default value; no special behavior specified for precompilation.

DelaySign

The assembly is not fully signed when created. The assembly can be signed later by a signing tool such as Sn.exe. The /delaysign flag will be added as a compilation symbol.

FixedNames

The assembly is generated with fixed names for the Web pages. The files are not batched during compilation and instead are compiled individually to produce the fixed names.

ForceDebug

The compiler will emit debug information. This field corresponds to the -d switch on Aspnet_compiler.exe.

OverwriteTarget

The target directory can be overwritten. This field corresponds to the -f switch on Aspnet_compiler.exe for a previously precompiled target.

Updatable

The deployed application will be updatable. This field corresponds to the -u switch on Aspnet_compiler.exe.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0