Skip to content

SARIF version in C# compiler ErrorLog property #27872

@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

Please document how to specify the version of the SARIF format as part of the ErrorLog property used by the C# compiler. This feature was added in dotnet/roslyn#37148.

<ErrorLog>log21.json,version=2.1</ErrorLog>

The compiler accepts either a comma or a semicolon as the separator between the file name and version, but its --help output uses a comma.

If the ErrorLog property is set in the dotnet build command line, then the comma (or semicolon) must be percent-encoded as in dotnet build -p:ErrorLog=logcmd.json%2Cversion=2.1, to prevent the -p option from treating version as the name of a separate property.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions