Class CompilationOptions
Inheritance
CompilationOptions
Assembly: Microsoft.CodeAnalysis.dll
Syntax
public abstract class CompilationOptions
Properties
AssemblyIdentityComparer
Declaration
public AssemblyIdentityComparer AssemblyIdentityComparer { get; protected set; }
Property Value
CheckOverflow
Declaration
public bool CheckOverflow { get; protected set; }
Property Value
ConcurrentBuild
Declaration
public bool ConcurrentBuild { get; protected set; }
Property Value
CryptoKeyContainer
Declaration
public string? CryptoKeyContainer { get; protected set; }
Property Value
CryptoKeyFile
Declaration
public string? CryptoKeyFile { get; protected set; }
Property Value
CryptoPublicKey
Declaration
public ImmutableArray<byte> CryptoPublicKey { get; protected set; }
Property Value
DelaySign
Declaration
public bool? DelaySign { get; protected set; }
Property Value
Deterministic
Declaration
public bool Deterministic { get; protected set; }
Property Value
Errors
Declaration
public ImmutableArray<Diagnostic> Errors { get; }
Property Value
Features
Declaration
[Obsolete]
protected ImmutableArray<string> Features { get; set; }
Property Value
GeneralDiagnosticOption
Declaration
public ReportDiagnostic GeneralDiagnosticOption { get; protected set; }
Property Value
Language
Declaration
public abstract string Language { get; }
Property Value
MainTypeName
Declaration
public string? MainTypeName { get; protected set; }
Property Value
Declaration
public MetadataImportOptions MetadataImportOptions { get; protected set; }
Property Value
Declaration
public MetadataReferenceResolver? MetadataReferenceResolver { get; protected set; }
Property Value
ModuleName
Declaration
public string? ModuleName { get; protected set; }
Property Value
NullableContextOptions
Declaration
public abstract NullableContextOptions NullableContextOptions { get; protected set; }
Property Value
OptimizationLevel
Declaration
public OptimizationLevel OptimizationLevel { get; protected set; }
Property Value
OutputKind
Declaration
public OutputKind OutputKind { get; protected set; }
Property Value
Declaration
public Platform Platform { get; protected set; }
Property Value
PublicSign
Declaration
public bool PublicSign { get; protected set; }
Property Value
ReportSuppressedDiagnostics
Declaration
public bool ReportSuppressedDiagnostics { get; protected set; }
Property Value
ScriptClassName
Declaration
public string? ScriptClassName { get; protected set; }
Property Value
SourceReferenceResolver
Declaration
public SourceReferenceResolver? SourceReferenceResolver { get; protected set; }
Property Value
SpecificDiagnosticOptions
Declaration
public ImmutableDictionary<string, ReportDiagnostic> SpecificDiagnosticOptions { get; protected set; }
Property Value
StrongNameProvider
Declaration
public StrongNameProvider? StrongNameProvider { get; protected set; }
Property Value
SyntaxTreeOptionsProvider
Declaration
public SyntaxTreeOptionsProvider? SyntaxTreeOptionsProvider { get; protected set; }
Property Value
WarningLevel
Declaration
public int WarningLevel { get; protected set; }
Property Value
XmlReferenceResolver
Declaration
public XmlReferenceResolver? XmlReferenceResolver { get; protected set; }
Property Value
Methods
CommonWithAssemblyIdentityComparer(AssemblyIdentityComparer?)
Declaration
protected abstract CompilationOptions CommonWithAssemblyIdentityComparer(AssemblyIdentityComparer? comparer)
Parameters
Returns
CommonWithCheckOverflow(bool)
Declaration
protected abstract CompilationOptions CommonWithCheckOverflow(bool checkOverflow)
Parameters
| Type |
Name |
Description |
| bool |
checkOverflow |
|
Returns
CommonWithConcurrentBuild(bool)
Declaration
protected abstract CompilationOptions CommonWithConcurrentBuild(bool concurrent)
Parameters
| Type |
Name |
Description |
| bool |
concurrent |
|
Returns
CommonWithCryptoKeyContainer(string?)
Declaration
protected abstract CompilationOptions CommonWithCryptoKeyContainer(string? cryptoKeyContainer)
Parameters
| Type |
Name |
Description |
| string |
cryptoKeyContainer |
|
Returns
CommonWithCryptoKeyFile(string?)
Declaration
protected abstract CompilationOptions CommonWithCryptoKeyFile(string? cryptoKeyFile)
Parameters
| Type |
Name |
Description |
| string |
cryptoKeyFile |
|
Returns
CommonWithCryptoPublicKey(ImmutableArray<byte>)
Declaration
protected abstract CompilationOptions CommonWithCryptoPublicKey(ImmutableArray<byte> cryptoPublicKey)
Parameters
Returns
CommonWithDelaySign(bool?)
Declaration
protected abstract CompilationOptions CommonWithDelaySign(bool? delaySign)
Parameters
| Type |
Name |
Description |
| bool? |
delaySign |
|
Returns
CommonWithDeterministic(bool)
Declaration
protected abstract CompilationOptions CommonWithDeterministic(bool deterministic)
Parameters
| Type |
Name |
Description |
| bool |
deterministic |
|
Returns
CommonWithFeatures(ImmutableArray<string>)
Declaration
[Obsolete]
protected abstract CompilationOptions CommonWithFeatures(ImmutableArray<string> features)
Parameters
Returns
CommonWithGeneralDiagnosticOption(ReportDiagnostic)
Declaration
protected abstract CompilationOptions CommonWithGeneralDiagnosticOption(ReportDiagnostic generalDiagnosticOption)
Parameters
Returns
CommonWithMainTypeName(string?)
Declaration
protected abstract CompilationOptions CommonWithMainTypeName(string? mainTypeName)
Parameters
| Type |
Name |
Description |
| string |
mainTypeName |
|
Returns
Declaration
protected abstract CompilationOptions CommonWithMetadataImportOptions(MetadataImportOptions value)
Parameters
Returns
Declaration
protected abstract CompilationOptions CommonWithMetadataReferenceResolver(MetadataReferenceResolver? resolver)
Parameters
Returns
CommonWithModuleName(string?)
Declaration
protected abstract CompilationOptions CommonWithModuleName(string? moduleName)
Parameters
| Type |
Name |
Description |
| string |
moduleName |
|
Returns
CommonWithOptimizationLevel(OptimizationLevel)
Declaration
protected abstract CompilationOptions CommonWithOptimizationLevel(OptimizationLevel value)
Parameters
Returns
CommonWithOutputKind(OutputKind)
Declaration
protected abstract CompilationOptions CommonWithOutputKind(OutputKind kind)
Parameters
Returns
Declaration
protected abstract CompilationOptions CommonWithPlatform(Platform platform)
Parameters
Returns
CommonWithPublicSign(bool)
Declaration
protected abstract CompilationOptions CommonWithPublicSign(bool publicSign)
Parameters
| Type |
Name |
Description |
| bool |
publicSign |
|
Returns
CommonWithReportSuppressedDiagnostics(bool)
Declaration
protected abstract CompilationOptions CommonWithReportSuppressedDiagnostics(bool reportSuppressedDiagnostics)
Parameters
| Type |
Name |
Description |
| bool |
reportSuppressedDiagnostics |
|
Returns
CommonWithScriptClassName(string)
Declaration
protected abstract CompilationOptions CommonWithScriptClassName(string scriptClassName)
Parameters
| Type |
Name |
Description |
| string |
scriptClassName |
|
Returns
CommonWithSourceReferenceResolver(SourceReferenceResolver?)
Declaration
protected abstract CompilationOptions CommonWithSourceReferenceResolver(SourceReferenceResolver? resolver)
Parameters
Returns
CommonWithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<string, ReportDiagnostic>>)
Declaration
protected abstract CompilationOptions CommonWithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<string, ReportDiagnostic>> specificDiagnosticOptions)
Parameters
Returns
CommonWithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>?)
Declaration
protected abstract CompilationOptions CommonWithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>? specificDiagnosticOptions)
Parameters
Returns
CommonWithStrongNameProvider(StrongNameProvider?)
Declaration
protected abstract CompilationOptions CommonWithStrongNameProvider(StrongNameProvider? provider)
Parameters
Returns
CommonWithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider?)
Declaration
protected abstract CompilationOptions CommonWithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider? resolver)
Parameters
Returns
CommonWithXmlReferenceResolver(XmlReferenceResolver?)
Declaration
protected abstract CompilationOptions CommonWithXmlReferenceResolver(XmlReferenceResolver? resolver)
Parameters
Returns
ComputeHashCode()
Declaration
protected abstract int ComputeHashCode()
Returns
Equals(object?)
Declaration
public override abstract bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
EqualsHelper(CompilationOptions?)
Declaration
protected bool EqualsHelper(CompilationOptions? other)
Parameters
Returns
GetHashCode()
Declaration
public override sealed int GetHashCode()
Returns
Overrides
GetHashCodeHelper()
Declaration
protected int GetHashCodeHelper()
Returns
WithAssemblyIdentityComparer(AssemblyIdentityComparer)
Declaration
public CompilationOptions WithAssemblyIdentityComparer(AssemblyIdentityComparer comparer)
Parameters
Returns
WithConcurrentBuild(bool)
Declaration
public CompilationOptions WithConcurrentBuild(bool concurrent)
Parameters
| Type |
Name |
Description |
| bool |
concurrent |
|
Returns
WithCryptoKeyContainer(string?)
Declaration
public CompilationOptions WithCryptoKeyContainer(string? cryptoKeyContainer)
Parameters
| Type |
Name |
Description |
| string |
cryptoKeyContainer |
|
Returns
WithCryptoKeyFile(string?)
Declaration
public CompilationOptions WithCryptoKeyFile(string? cryptoKeyFile)
Parameters
| Type |
Name |
Description |
| string |
cryptoKeyFile |
|
Returns
WithCryptoPublicKey(ImmutableArray<byte>)
Declaration
public CompilationOptions WithCryptoPublicKey(ImmutableArray<byte> cryptoPublicKey)
Parameters
Returns
WithDelaySign(bool?)
Declaration
public CompilationOptions WithDelaySign(bool? delaySign)
Parameters
| Type |
Name |
Description |
| bool? |
delaySign |
|
Returns
WithDeterministic(bool)
Declaration
public CompilationOptions WithDeterministic(bool deterministic)
Parameters
| Type |
Name |
Description |
| bool |
deterministic |
|
Returns
WithGeneralDiagnosticOption(ReportDiagnostic)
Declaration
public CompilationOptions WithGeneralDiagnosticOption(ReportDiagnostic value)
Parameters
Returns
WithMainTypeName(string?)
Declaration
public CompilationOptions WithMainTypeName(string? mainTypeName)
Parameters
| Type |
Name |
Description |
| string |
mainTypeName |
|
Returns
Declaration
public CompilationOptions WithMetadataImportOptions(MetadataImportOptions value)
Parameters
Returns
Declaration
public CompilationOptions WithMetadataReferenceResolver(MetadataReferenceResolver? resolver)
Parameters
Returns
WithModuleName(string?)
Declaration
public CompilationOptions WithModuleName(string? moduleName)
Parameters
| Type |
Name |
Description |
| string |
moduleName |
|
Returns
WithOptimizationLevel(OptimizationLevel)
Declaration
public CompilationOptions WithOptimizationLevel(OptimizationLevel value)
Parameters
Returns
WithOutputKind(OutputKind)
Declaration
public CompilationOptions WithOutputKind(OutputKind kind)
Parameters
Returns
WithOverflowChecks(bool)
Declaration
public CompilationOptions WithOverflowChecks(bool checkOverflow)
Parameters
| Type |
Name |
Description |
| bool |
checkOverflow |
|
Returns
Declaration
public CompilationOptions WithPlatform(Platform platform)
Parameters
Returns
WithPublicSign(bool)
Declaration
public CompilationOptions WithPublicSign(bool publicSign)
Parameters
| Type |
Name |
Description |
| bool |
publicSign |
|
Returns
WithReportSuppressedDiagnostics(bool)
Declaration
public CompilationOptions WithReportSuppressedDiagnostics(bool value)
Parameters
| Type |
Name |
Description |
| bool |
value |
|
Returns
WithScriptClassName(string)
Declaration
public CompilationOptions WithScriptClassName(string scriptClassName)
Parameters
| Type |
Name |
Description |
| string |
scriptClassName |
|
Returns
WithSourceReferenceResolver(SourceReferenceResolver?)
Declaration
public CompilationOptions WithSourceReferenceResolver(SourceReferenceResolver? resolver)
Parameters
Returns
WithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<string, ReportDiagnostic>>)
Declaration
public CompilationOptions WithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<string, ReportDiagnostic>> value)
Parameters
Returns
WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>?)
Declaration
public CompilationOptions WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>? value)
Parameters
Returns
WithStrongNameProvider(StrongNameProvider?)
Declaration
public CompilationOptions WithStrongNameProvider(StrongNameProvider? provider)
Parameters
Returns
WithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider?)
Declaration
public CompilationOptions WithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider? provider)
Parameters
Returns
WithXmlReferenceResolver(XmlReferenceResolver?)
Declaration
public CompilationOptions WithXmlReferenceResolver(XmlReferenceResolver? resolver)
Parameters
Returns
Operators
operator ==(CompilationOptions?, CompilationOptions?)
Declaration
public static bool operator ==(CompilationOptions? left, CompilationOptions? right)
Parameters
Returns
operator !=(CompilationOptions?, CompilationOptions?)
Declaration
public static bool operator !=(CompilationOptions? left, CompilationOptions? right)
Parameters
Returns