This topic has not yet been rated - Rate this topic

PrecompilationFlags Enumeration

Provides flags that determine precompilation behavior.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)
[FlagsAttribute]
public enum PrecompilationFlags
Member name Description
Default The default value; no special behavior specified for precompilation.
Updatable The deployed application will be updatable. This field corresponds to the -u 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.
ForceDebug The compiler will emit debug information. This field corresponds to the -d switch on Aspnet_compiler.exe.
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.
AllowPartiallyTrustedCallers An 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.
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.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ