CompilationFailure Class¶
Describes a failure compiling a specific file.
- Namespace
Microsoft.AspNetCore.Diagnostics
- Assemblies
- Microsoft.AspNetCore.Diagnostics.Abstractions
Constructors¶
-
CompilationFailure
(System.String, System.String, System.String, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage>)¶ public CompilationFailure(string sourceFilePath, string sourceFileContent, string compiledContent, IEnumerable<DiagnosticMessage> messages)
-
Properties¶
-
Microsoft.AspNetCore.Diagnostics.CompilationFailure.
CompiledContent
¶ Contents being compiled.
Return type: System.String public string CompiledContent { get; }
-
Microsoft.AspNetCore.Diagnostics.CompilationFailure.
Messages
¶ Gets a sequence of
Microsoft.AspNetCore.Diagnostics.DiagnosticMessage
produced as a result of compilation.Return type: System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.DiagnosticMessage> public IEnumerable<DiagnosticMessage> Messages { get; }
-
Microsoft.AspNetCore.Diagnostics.CompilationFailure.
SourceFileContent
¶ Contents of the file.
Return type: System.String public string SourceFileContent { get; }
-
Microsoft.AspNetCore.Diagnostics.CompilationFailure.
SourceFilePath
¶ Path of the file that produced the compilation failure.
Return type: System.String public string SourceFilePath { get; }
-