EmitOptions Class

Definition

Represents compilation emit options.

public ref class EmitOptions sealed : IEquatable<Microsoft::CodeAnalysis::Emit::EmitOptions ^>
public sealed class EmitOptions : IEquatable<Microsoft.CodeAnalysis.Emit.EmitOptions>
type EmitOptions = class
    interface IEquatable<EmitOptions>
Public NotInheritable Class EmitOptions
Implements IEquatable(Of EmitOptions)
Inheritance
EmitOptions
Implements

Constructors

EmitOptions(Boolean, DebugInformationFormat, String, String, Int32, UInt64, Boolean, SubsystemVersion, String, Boolean, Boolean, ImmutableArray<InstrumentationKind>, Nullable<HashAlgorithmName>, Encoding, Encoding)
EmitOptions(Boolean, DebugInformationFormat, String, String, Int32, UInt64, Boolean, SubsystemVersion, String, Boolean, Boolean, ImmutableArray<InstrumentationKind>, Nullable<HashAlgorithmName>)
EmitOptions(Boolean, DebugInformationFormat, String, String, Int32, UInt64, Boolean, SubsystemVersion, String, Boolean, Boolean, ImmutableArray<InstrumentationKind>)
EmitOptions(Boolean, DebugInformationFormat, String, String, Int32, UInt64, Boolean, SubsystemVersion, String, Boolean, Boolean)

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

Equals(EmitOptions)
Equals(Object)
GetHashCode()
WithBaseAddress(UInt64)
WithDebugInformationFormat(DebugInformationFormat)
WithDefaultSourceFileEncoding(Encoding)
WithEmitMetadataOnly(Boolean)
WithFallbackSourceFileEncoding(Encoding)
WithFileAlignment(Int32)

Sets the byte alignment for portable executable file sections.

WithHighEntropyVirtualAddressSpace(Boolean)
WithIncludePrivateMembers(Boolean)
WithInstrumentationKinds(ImmutableArray<InstrumentationKind>)
WithOutputNameOverride(String)
WithPdbChecksumAlgorithm(HashAlgorithmName)
WithPdbFilePath(String)
WithRuntimeMetadataVersion(String)
WithSubsystemVersion(SubsystemVersion)
WithTolerateErrors(Boolean)

Operators

Equality(EmitOptions, EmitOptions)
Inequality(EmitOptions, EmitOptions)

Applies to