英語で読む

次の方法で共有


EmitOptions Class

Definition

Represents compilation emit options.

C#
public sealed class EmitOptions : IEquatable<Microsoft.CodeAnalysis.Emit.EmitOptions>
Inheritance
EmitOptions
Implements

Constructors

Properties

BaseAddress

Specifies the preferred base address at which to load the output DLL.

DebugInformationFormat

Debug information format.

DefaultSourceFileEncoding

The encoding used to parse source files that do not have a Byte Order Mark. If specified, is stored in the emitted PDB in order to allow recreating the original compilation.

EmitMetadataOnly

True to emit an assembly excluding executable code such as method bodies.

FallbackSourceFileEncoding

If DefaultSourceFileEncoding is not specified, the encoding used to parse source files that do not declare their encoding via Byte Order Mark and are not UTF-8 encoded.

FileAlignment

Specifies the size of sections in the output file.

HighEntropyVirtualAddressSpace

True to enable high entropy virtual address space for the output binary.

IncludePrivateMembers

Unless set (private) members that don't affect the language semantics of the resulting assembly will be excluded when emitting metadata-only assemblies as primary output (with EmitMetadataOnly on). If emitting a secondary output, this flag is required to be false.

InstrumentationKinds

Type of instrumentation that should be added to the output binary.

OutputNameOverride

Assembly name override - file name and extension. If not specified the compilation name is used.

PdbChecksumAlgorithm

A crypto hash algorithm used to calculate PDB Checksum stored in the PE/COFF File. If not specified (the value is default(HashAlgorithmName)) the checksum is not calculated.

PdbFilePath

The name of the PDB file to be embedded in the PE image, or null to use the default.

RuntimeMetadataVersion

Runtime metadata version.

SubsystemVersion

Subsystem version

TolerateErrors

Tolerate errors, producing a PE stream and a success result even in the presence of (some) errors.

Methods

Operators

Applies to

製品 バージョン
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0