PrecompilationFlags 枚举

定义

提供确定预编译行为的标志。Provides flags that determine precompilation behavior.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class PrecompilationFlags
[System.Flags]
public enum PrecompilationFlags
type PrecompilationFlags = 
Public Enum PrecompilationFlags
继承
PrecompilationFlags
属性

字段

AllowPartiallyTrustedCallers 32

AllowPartiallyTrustedCallersAttribute 属性是为程序集生成的,也就是说程序集可由部分受信任代码调用。An AllowPartiallyTrustedCallersAttribute attribute is generated for the assemblies, which means the assemblies can be called by partially trusted code. /aptca 标志将添加为编译符号。The /aptca flag will be added as a compilation symbol.

Clean 8

将生成“全新”应用程序:将重新编译任何之前编译的组件。The application will be built "clean": Any previously compiled components will be recompiled. 此字段对应于 Aspnet_compiler.exe 上的 -c 开关。This field corresponds to the -c switch on Aspnet_compiler.exe.

CodeAnalysis 16

/define:CodeAnalysis 标志将添加为编译符号。The /define:CodeAnalysis flag will be added as a compilation symbol.

Default 0

默认值;未向预编译指定特殊行为。The default value; no special behavior specified for precompilation.

DelaySign 64

该程序集在创建后未完全签名。The assembly is not fully signed when created. 该程序集可稍后由签名工具(如 Sn.exe)签名。The assembly can be signed later by a signing tool such as Sn.exe. /delaysign 标志将添加为编译符号。The /delaysign flag will be added as a compilation symbol.

FixedNames 128

使用网页的固定名称生成程序集。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 4

该编译器将发出调试信息。The compiler will emit debug information. 此字段对应于 Aspnet_compiler.exe 上的 -d 开关。This field corresponds to the -d switch on Aspnet_compiler.exe.

IgnoreBadImageFormatException 256

该编译器将忽略错误图像格式异常。The compiler will ignore bad image format exceptions.

OverwriteTarget 2

可覆盖目标目录。The target directory can be overwritten. 此字段对应之前预编译目标的 Aspnet_compiler.exe 上的 -f 开关。This field corresponds to the -f switch on Aspnet_compiler.exe for a previously precompiled target.

Updatable 1

部署的应用程序将可更新。The deployed application will be updatable. 此字段对应于 Aspnet_compiler.exe 上的 -u 开关。This field corresponds to the -u switch on Aspnet_compiler.exe.

注解

PrecompilationFlags类定义预编译期间生成管理器的行为。The PrecompilationFlags class defines the behavior of the build manager during precompilation. ClientBuildManager类采用PrecompilationFlags其构造函数参数之一。The ClientBuildManager class takes PrecompilationFlags as one of its constructor parameters. 可以通过ClientBuildManager编程方式或通过 Aspnet_compiler 命令行工具执行预编译。Precompilation can be performed programmatically through ClientBuildManager or through the Aspnet_compiler.exe command-line tool.

适用于