public sealed class DiagnosticWriterWrites what a command found, in the form its reader can use.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Two readers, one set of facts. A person wants the project-relative path and an aligned column they can skim; MSBuild wants an absolute path, a code, and the exact word error or warning — get that wrong and the line is prose in a log rather than an entry in an error list that can be clicked.
The path is absolute in the MSBuild form. A relative one is resolved against whatever directory the build happens to be running in, which is not the project's, so the IDE opens nothing.
Fields and properties (1)
public DiagnosticFormat FormatHow it is writing.
Methods (5)
public DiagnosticWriter(TextWriter output, DiagnosticFormat format, string? root = null)Writes what a command found, in the form its reader can use.
public void Asset(ImportSeverity severity, string path, string code, string message)Says something about one asset.
public void Project(ImportSeverity severity, string code, string message)Says something about the project rather than about one asset in it.
public void Line(string message)Says something that is neither, like a summary line.
public static ImportSeverity SeverityOf(AssetIssueKind kind)The severity an asset-database issue carries.
Used by (4)
- ContentBuildRunnerVixen.Cli
- ImportRunnerVixen.Cli
- ShaderBuildRunnerVixen.Cli
- VixenCommandVixen.Cli